/* ===================== GLOBAL STYLING ===================== */
/* Reset og generelle elementer, layout og billeder */

/* Reset og generelle regler for at sikre ens udseende på tværs af browsere */
* {
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  /* Standard font og layout for hele siden */
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Gør alle billeder responsive, så de ikke flyder ud over containeren */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================== TOPNAV (navigation) ===================== */
/* Navigation-bar med burger-menu og links */
.topnav {
  background-color: #0d1ca0;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 5px 10px;
  width: 100%;
}
.topnav a {
  display: inline-block;
  margin-left: 16px;
  color: #ffffff;
  padding: 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.topnav a:hover {
  background-color: #e4882c;
  color: #0d1ca0;
}
/* Burger-menu: Gør ikon stort, tydeligt og med god kontrast */
.topnav .icon {
  font-size: 2.4em;
  color: #e4882c;
  background: #fff;
  border-radius: 50%;
  padding: 8px;
  border: 2px solid #e4882c;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
}
.topnav .icon:hover {
  background: #e4882c;
  color: #fff;
}
@media (min-width: 600px) {
  .topnav .icon {
    display: none;
  }
}
@media (max-width: 600px) {
  .topnav {
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 10px;
  }
  .topnav a {
    display: block;
    margin: 8px 0 0 0;
    text-align: right;
  }
  .topnav .icon {
    margin: 12px 0 0 0;
    align-self: flex-end;
    display: block;
  }
}

/* ===================== INFO BAR ===================== */
/* Infobar med mail og telefon, placeret over footer */
.info {
  position: relative;
  width: 100vw;
  left: 0;
  right: 0;
  background: #e4882c;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 50px;
  width: 100%;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.info p {
  flex: 1 1 0;
  text-align: left;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-telefon-wrapper {
  flex: 1 1 0;
  text-align: right;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
  display: flex;
  justify-content: flex-end;
}
.info-telefon {
  margin: 0;
  padding: 0;
  text-align: right;
}
/* Info bar: tillad at telefonnummeret kan bryde linjen hvis nødvendigt */
.info-telefon-wrapper,
.info-telefon {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
}
@media (max-width: 600px) {
  .info {
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 32px;
    flex-wrap: wrap;
  }
  .info p,
  .info-telefon-wrapper {
    font-size: 0.95rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===================== MAIN INDHOLD ===================== */
/* Forside, mærkesager, om Louise, debat, frivillig - layout og sektioner */
/* Forside: Centreret artikel og billede af Louise */
article {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto 20px;
  height: auto;
}
.louise-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 98%;
  height: auto;
}
/* Overskrifter: centreret og ALL CAPS */
h1,
h2,
h3 {
  text-align: center;
  color: #0d1ca0;
  text-transform: uppercase;
  margin-bottom: 24px;
}
/* Tekst i sektioner skal være letlæselig og have luft omkring sig */
section p {
  line-height: 150%;
  margin: 10px auto;
  justify-content: space-around;
}
p a {
  color: black;
}
p a:hover {
  background-color: #e4882c;
}

/* ===================== MÆRKESAGER (Mærkesager.html) ===================== */
/* Container til mærkesager: flex layout og padding for luft */
.minemærkesager {
  max-width: 1000px;
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-left: 4vw;
  padding-right: 4vw;
  margin-top: 18px;
  box-sizing: border-box;
  width: 100%;
}
/* Bokse til mærkesager: samme position som kontakt, men flex: 1 1 40px */
.flexbox {
  background: #e4882c;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  line-height: 1.5;
  flex: 0 1 45%;
  min-width: 320px;
  max-width: 440px;
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  box-sizing: border-box;
  min-height: 340px;
  overflow: hidden;
}
.flexbox h2 {
  /* Fremhæv overskrifter i mærkesager-bokse */
  color: #fff;
  font-weight: 900;
  margin-bottom: 0;
  white-space: nowrap;
  padding-top: 0;
  margin-top: 4px;
  text-shadow: none;
}
.flexbox h3 {
  margin-bottom: 8px;
}
.flexbox p {
  /* Tekst i bokse: centreret og hvid for kontrast */
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-align: center;
  max-width: 100%;
  margin: 10px 0;
  line-height: 1.9;
  box-sizing: border-box;
  word-break: normal;
  white-space: normal;
}
.mærkesager {
  /* Flex layout til mærkesager på større skærme */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}
.flexbox {
  width: 45%;
  min-width: 320px;
  max-width: 440px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
@media (max-width: 900px) {
  .flexbox {
    width: 100%;
    min-width: 240px;
    max-width: 100%;
  }
}

/* ===================== OM LOUISE (om-Louise.html) ===================== */
/* Billede og tekst om Louise: centreret og responsiv */
.om-Louise,
.om-louise {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 98%;
  height: auto;
  margin: 0 auto 20px;
  padding: 0 auto 10px;
}
/* Tekstafsnit om Louise: luft og god linjeafstand */
#tekst1,
#tekst2 {
  max-width: 800px;
  line-height: 150%;
  margin: 0 auto 20px;
  justify-content: space-between;
  font-size: medium;
}

/* ===================== KONTAKT (kontakt.html) ===================== */
/* Bannerbillede på kontaktsiden */
.banner {
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
/* Infobar med orange baggrund og flex layout */
.info {
  position: relative;
  width: 100vw;
  left: 0;
  right: 0;
  background: #e4882c;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 32px;
  width: 100%;
  margin: 0;
}
.info p {
  flex: 1 1 0;
  text-align: left;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-telefon-wrapper {
  flex: 1 1 0;
  text-align: right;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: auto;
  display: flex;
  justify-content: flex-end;
}
.info-telefon {
  margin: 0;
  padding: 0;
  text-align: right;
}
/* Info bar: tillad at telefonnummeret kan bryde linjen hvis nødvendigt */
.info-telefon-wrapper,
.info-telefon {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
}
@media (max-width: 600px) {
  .info {
    padding-left: 0 !important;
    padding-right: 0 !important;
    min-height: 32px;
    flex-wrap: wrap;
  }
  .info p,
  .info-telefon-wrapper {
    font-size: 0.95rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===================== DEBAT & FRIVILLIG (debat.html, frivillig.html) ===================== */
/* Bokse til debat/frivillig: orange baggrund, flex layout og afrundede hjørner */
.politikbox {
  min-height: 150px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px auto;
  padding: 32px 24px;
  max-width: 500px;
  background: #e4882c;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  line-height: 1.5;
  min-width: 320px;
  max-width: 440px;
  flex: 1 1 440px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  box-sizing: border-box;
  min-height: 340px;
}
/* Overskrifter i debat/frivillig bokse: stor, fed og centreret */
.politikbox h2,
.politikbox h3,
.politikbox h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  margin: 24px 0 12px 0;
  text-align: center;
}
/* Tekst i bokse: centreret og hvid */
.politikbox p {
  margin-bottom: 18px;
  text-align: center;
  font-size: 1.05rem;
  color: #fff;
}
/* Liste i bokse: ingen bullets og centreret */
.politikbox ul {
  margin: 0 auto 18px auto;
  padding-left: 0;
  list-style: none;
  text-align: center;
}
/* Punkter i listen: let baggrund og afrundede hjørner */
.politikbox ul li {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 0;
  font-weight: 500;
  font-size: 1rem;
}
/* Hele boksen kan klikkes som et link */
.politikbox-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}
.politikbox-link .politikbox {
  pointer-events: none;
}
/* Frivillig-boks: orange, flex og skygge for fremhævning */
.frivilligbox {
  background: #e4882c;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  line-height: 1.5;
  min-width: 120px;
  justify-content: flex-start;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  padding: 20px;
}
.frivilligbox p {
  color: #fff; /* Samme farve som .flexbox p */
  font-size: 1.05rem;
  margin-bottom: 8px;
  text-align: center;
  max-width: 100%;
  line-height: 1.7;
}

/* Række-layout til bokse: side-om-side på desktop */
.box-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}

/* ===================== FOOTER ===================== */
/* Footer med logo til venstre og socials til højre */
footer {
  /* Footer skal altid ligge nederst og have fast layout */
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0d1ca0;
  height: auto;
  width: 100%;
  margin: 0;
  padding: 24px 4vw 20px 4vw;
}

/* Footer layout: logo til venstre, socials til højre */
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 50px;
  min-height: 50px;
  padding: 0 24px;
  background: #0d1ca0;
  width: 100%;
  box-sizing: border-box;
}
.ltt {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.footer-logo {
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  display: block;
}
@media (max-width: 600px) {
  footer {
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
  }
  .footer-logo,
  .socials {
    height: 32px;
    max-height: 32px;
  }
}

/* ===================== OVERORDNET LAYOUT ===================== */
/* Ensret max-width og centrering for alle hovedsektioner */
body,
main,
.topnav,
.info,
footer {
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 1358px) {
  body,
  main,
  .topnav,
  .info,
  footer {
    max-width: 1358px;
  }
  .mærkesager {
    max-width: 1200px;
    gap: 32px;
  }
}

/* ===================== SEKTIONER ===================== */
/* Giv alle hovedsektioner ensartet spacing og alignment */
main,
article,
section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

/* ===================== TYPOGRAFI ===================== */
/* Ensartet font, farve og størrelse på tværs af sider */
body,
h1,
h2,
h3,
p,
a {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  font-style: italic;
  line-height: 1.5;
}

/* ===================== HEADER, INFO BAR, FOOTER ===================== */
/* Ens layout og spacing for topnav, infobar og footer */
.topnav,
.info,
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 600px) {
  body,
  main,
  .topnav,
  .info,
  footer {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  main,
  article,
  section {
    gap: 16px;
  }
  .topnav,
  .info,
  footer {
    flex-direction: column;
    align-items: stretch;
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (min-width: 1358px) {
  body,
  main,
  .topnav,
  .info,
  footer {
    max-width: 1358px;
  }
  .mærkesager {
    max-width: 1200px;
    gap: 32px;
  }
  /* Tilpas evt. andre elementer for desktop */
}

@media (min-width: 600px) {
  /* Desktop: Bokse og layout tilpasset bredere skærme */
  .mærkesager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .flexbox {
    max-width: 300px;
    margin: 10px;
    padding: 20px;
  }
  .topnav .icon {
    display: none;
  }
  .info {
    height: 30px;
    padding: 0 4vw;
    font-size: 1.08rem;
    align-items: center;
    margin: 0 auto 20px auto;
  }
  .info p {
    width: 50%;
    font-size: 1.08rem;
    margin: 12px 0;
    text-align: left;
    flex: unset;
  }
  .info-telefon-wrapper {
    width: 50%;
    text-align: right;
    flex: unset;
    font-size: 1.08rem;
  }
}

/* Ensret bredde på topnav, info bar og footer med max-width og centreret margin */
.topnav,
.info,
footer {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Info bar tekst: match resten af tekstens styling */
.info p,
.info-telefon-wrapper {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- RESPONSIVE LAYOUT TIL ALLE ELEMENTER --- */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
    padding: 0;
  }

  .info {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 36px;
  }
  .info p,
  .info-telefon-wrapper {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    margin-bottom: 2px;
    padding: 0;
    word-break: break-word;
  }
  .footer-logo {
    height: 28px;
    max-width: 120px;
    margin-left: 12px;
  }

  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
    padding-right: 12px;
    height: 44px;
  }
}

@media (min-width: 601px) {
  body {
    font-size: 1.08rem;
    padding: 0;
  }
  .topnav {
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
  }
  .info {
    flex-direction: row;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 32px;
  }
  .info p {
    text-align: left;
    font-size: 1.05rem;
    padding: 0;
  }
  .info-telefon-wrapper {
    text-align: right;
    font-size: 1.05rem;
    padding: 0;
  }
  .footer-logo {
    height: 32px;
    max-width: 180px;
    margin-left: 24px;
  }
  .socials {
    height: 40px;
    max-height: 40px;
    min-width: 40px;
    max-width: 60px;
    object-fit: contain;
    margin: 0 0 0 16px;
    padding: 0;
    display: block;
  }
  footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 24px;
    padding-right: 24px;
    height: 50px;
  }
}

/* Footer: Ensret layout, centrer indhold og harmoniser spacing */
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  min-height: 50px;
  padding: 0 24px;
  background: #0d1ca0;
  width: 100%;
  box-sizing: border-box;
}
.ltt {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.footer-logo,
.socials {
  height: 40px;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  display: block;
}
@media (max-width: 600px) {
  footer {
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
  }
  .footer-logo,
  .socials {
    height: 32px;
    max-height: 32px;
  }
}

/* === OVERORDNET LAYOUT OG RØD TRÅD MELLEM SIDER === */
body,
main,
.topnav,
.info,
footer {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
main,
article,
section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}
.topnav,
.info,
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 24px;
  padding-right: 24px;
}
/* Ensartet typografi på tværs af sider */
body,
h1,
h2,
h3,
a {
  font-family: Arial, Helvetica, sans-serif;
  color: #0d1ca0;
  font-style: italic;
  line-height: 1.5;
}
/* Responsive layout for mobil */
@media (max-width: 600px) {
  body,
  main,
  .topnav,
  .info,
  footer {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  main,
  article,
  section {
    gap: 16px;
  }
  .topnav,
  .info,
  footer {
    flex-direction: column;
    align-items: stretch;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Styling til valgplakat-billede så det matcher om-Louise img */
.valg-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 98%;
  height: auto;
  margin-top: 20px; /* Giver samme afstand til topnav som om-Louise img */
  margin-bottom: 20px;
  padding: 0 auto 10px;
}

/* Styling til valgplakat-billede: kun via CSS, ingen HTML-ændring */
img[src*="Louise plakat.jpg"],
img[src*="Louise plakat – lille.jpeg"],
img[src*="Louise-mellem.jpeg"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 98%;
  height: auto;
  margin-bottom: 20px;
  padding: 0;
}

/* Mere luft mellem MobilePay-tekst, valgplakat-img og politikbokse på kontakt.html */
.kontakt-mobilepay {
  margin-bottom: 32px;
}
img[src="Louise"] {
  margin-bottom: 32px;
}
.politik {
  margin-top: -50px; /* Mere luft mellem h1 og flexboxe */
}

/* Mere luft under MobilePay h2 på kontakt-siden */
h2 {
  margin-bottom: 32px;
}

/* Fjern text-shadow og brug ren hvid i stedet for whitesmoke */
.flexbox h3,
.flexbox h2,
.flexbox h1 {
  text-shadow: none;
}
.flexbox p,
.politikbox p,
section p {
  color: #fff;
}

/* Mærkesager: brug flex på article for side-om-side layout */
.mærkesager article {
  flex: 1 1 22%;
  min-width: 320px;
  max-width: 440px;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin: 0;
  padding: 16px 20px;
  box-sizing: border-box;
  min-height: 340px;
  overflow: hidden;
}

/* Mærkesager: centrer articles med justify-content */
.mærkesager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
}

/* Responsive mærkesager-grid: 2x2 på desktop, 1x4 på mobil */
.mærkesager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
  justify-items: center;
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
  max-width: 150px;
  width: auto;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .mærkesager {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 150px;
    gap: 8px;
  }
  .mærkesager article {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}
.flexbox {
  min-width: 240px;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: #e4882c;
  border-radius: 10px;
  margin: 0 auto 20px;
  padding: 10px 10px;
  box-sizing: border-box;
  min-height: 240px;
  overflow: hidden;
}

/* Bokse: aspect-ratio auto, så de følger tekstens højde, og grid gap bevares */
.flexbox {
  aspect-ratio: auto;
  min-height: unset;
  max-height: unset;
}

/* Mindre vertikal gap mellem rækker i mærkesager-grid */
.mærkesager {
  gap: 8px 16px;
}
@media (max-width: 700px) {
  .mærkesager {
    gap: 14px;
  }
}

/* Sæt præcis 15px afstand mellem mærkesager-bokse */
.mærkesager {
  gap: 15px;
}

/* Sæt samme afstand (8px) mellem boksene og mellem boks og overskrift, så layoutet er ensartet og kompakt */
.mærkesager {
  gap: 8px;
}
.flexbox h3 {
  margin-bottom: 8px;
}
.flexbox {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Opdater mærkesager layout med brugerens ønskede styling */
.mærkesager {
  max-width: 1200px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 20px;
}

/* Tilbagefør mærkesager til grid layout med centreret og kompakt design */
.mærkesager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  justify-items: center;
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
  width: auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 700px) {
  .mærkesager {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 98vw;
    gap: 8px;
  }
  .mærkesager article {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* Giv mere plads til tekst i mærkesager-bokse */
.mærkesager article {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.flexbox {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 24px 10px;
  box-sizing: border-box;
}
.flexbox p {
  font-size: 1.08rem;
  line-height: 1.9;
  word-break: normal;
  white-space: normal;
  max-width: 100%;
}

/* Reset og kontrol af overskrifter */
h1,
h2 {
  margin: 0;
  padding: 0;
}
h1 {
  margin-bottom: 20px; /* afstand til næste element */
}
h2 {
  margin-bottom: 16px; /* afstand til næste element */
}
/* Grid med 4 bokse (2x2 layout) */
.mærkesager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px; /* afstand mellem bokse */
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch; /* gør at hver række får samme højde */
}
/* Artikel skal være container for flexbox */
.mærkesager article {
  margin: 0;
  padding: 0;
  background: none;
  display: flex; /* så flexbox kan strække sig */
}
/* Selve boksen */
.flexbox {
  flex: 1; /* fylder hele højden af article */
  background: #e4882c;
  border-radius: 10px;
  padding: 24px 12px; /* Mindre padding for mindre luft */
  margin: 0 auto 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  line-height: 1.6;
  color: #0d1ca0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.flexbox h2 {
  margin: 0 0 18px 0; /* Mere afstand under overskrift */
  font-size: 1.5rem; /* Større overskrift */
  font-weight: bold;
  line-height: 1.2;
}
.flexbox p {
  margin: 0;
  font-size: 1.18rem; /* Større tekst */
  line-height: 2.1; /* Mere luft mellem linjer */
  padding-bottom: 6px; /* Ekstra luft under tekst */
}

/* Mobil: 1 kolonne */
@media (max-width: 700px) {
  .mærkesager {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 98vw;
  }
}

/* Mere afstand mellem mærkesager og footer */
.mærkesager {
  margin-bottom: 48px;
}

/* Style p-tekst på forsiden og frivillig som på om-Louise */
.index-p,
.frivillig-p {
  color: #222;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 auto 20px auto;
  text-align: left;
  max-width: 800px;
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===================== SOCIALS ROW ===================== */
/* Styling til socials links i footer */
.socials-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 18px 0;
}
.socials-row a {
  font-size: 1.08rem;
  color: #0d1ca0;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.socials-row a:hover {
  background: #e4882c;
  color: #fff;
}
.kontakt-h1 {
  text-align: center;
  margin: 48px auto 48px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  width: 100%;
  max-width: 100%;
  position: static;
  left: unset;
  transform: unset;
}

.kontakt-h1:not(h1) {
  margin: 0 auto 24px auto;
  font-size: 1.2rem;
  font-weight: normal;
  left: unset;
  transform: unset;
}
