* {
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  justify-content: center;
  align-items: center;
}

/* Her for vi logo og menu til at stå i hver sin ende*/
header {
  background-color: whitesmoke;
  display: flex;
  justify-content: space-between;
  padding: 15px;
}
/* her ændre vi kun det der ligger i header*/
header a {
  color: #312d2d;
  text-decoration: none;
  padding: 15px;
  font-size: larger;
}
/* giver teksten farve når man holder mussen hen over*/
header a:hover {
  color: #a81212;
}
.topnav {
  display: flex;
  justify-content: flex-end;
}
.topnav a:hover {
  color: #a81212;
}
.topnav .icon {
  display: none;
}
.logo2 {
  width: 100%;
  height: 50px;
}
.logo {
  display: flex;
}
h1 {
  padding: 20px 0;
  color: #333;
}
article {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto 0 auto;
}
p {
  line-height: 150%;
}
h2 {
  line-height: 150%;
}
ul {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto 0 auto;
  justify-content: space-between;
  line-height: 150%;
}
.medlem {
  background-color: whitesmoke;
  line-height: 150%;
  justify-content: center;
  align-items: center;
}
.nyhedsboks {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
}

.nyhed-titel {
  margin-top: 0;
  font-size: 1.4rem;
  color: #333;
}

.nyhed-dato {
  font-size: 0.9rem;
  color: #777;
  margin: 5px 0 15px;
}

.nyhed-tekst {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.nyhed-link {
  display: inline-block;
  margin-top: 15px;
  color: #a81212;
  text-decoration: none;
  font-weight: bold;
}

.nyhed-link:hover {
  text-decoration: underline;
  color: #0066cc;
}
.page-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.content-wrapper {
  display: flex;
  flex-direction: column; /* stadig mobil: under hinanden */
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: auto; /* centrerer indholdet */
}

.tekstboks,
.kontakt-boks {
  flex: 1;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #000000;
}

.tekstboks {
  font-size: 1.2rem;
  line-height: 150%;
  text-align: left;
  color: #000000;
  padding: 30px;
}

.sarah2 {
  width: 100%;
  padding-top: 40px;
}

.kontakt-boks h2 {
  text-align: center;
  margin-top: 0;
}

.kontakt-boks label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
  color: #555;
}

.kontakt-boks input,
.kontakt-boks textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.kontakt-boks textarea {
  min-height: 120px;
  resize: vertical;
}

.kontakt-boks button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #a81212;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
}

.kontakt-boks button:hover {
  background: #0066cc;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.intro,
.visioner {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #000000;
}

.intro h1 {
  text-align: center;
  margin-top: 0;
  font-size: 2.2rem;
  color: #000000;
}
.intro p {
  text-align: center;
  font-size: 22px;
}
h4 {
  font-size: 22px;
  text-align: center;
  padding-bottom: 15px;
  color: #a81212;
}
.visioner {
  background-color: white;
}
.visioner h2 {
  text-align: center;
  margin-top: 0;
}

.visioner ul {
  list-style: none;
  padding: 0;
  background-color: white;
}

.visioner ul li {
  background: linear-gradient(to right, #a81212, white);
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  color: #000000;
  font-weight: bold;
}

/* Flex sektion: Nyheder + Instagram */
.flex-section {
  display: flex;
  flex-direction: column; /* default: mobil */
  gap: 30px;
  flex: 1; /* skubber footeren ned */
}
footer {
  text-align: center;
  padding: 1rem;
  background: whitesmoke;
  color: #333;
  bottom: 0;
  width: 100%;
}
.nyheder,
.instagram {
  flex: 1;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px #000000;
  box-sizing: border-box;
}

.nyheder h2,
.instagram h2 {
  text-align: center;
  margin-top: 0;
}

.nyheder article {
  margin-bottom: 30px;
}
.nyheder h3 {
  margin-bottom: 5px;
  color: #333;
}
.nyheder a {
  color: #a81212;
}
.nyheder a:hover {
  color: #0066cc;
  text-decoration: none;
}

h2 {
  padding: 20px;
}
.instagram {
  display: flex;
  flex-direction: column; /* sørger for at elementer står under hinanden */
  justify-content: center; /* centrerer lodret */
  align-items: center; /* centrerer vandret */
  text-align: center; /* centrerer tekst */
  min-height: 200px; /* kan tilpasses */
  border: 1px solid #ddd;
  padding: 20px;
}
.instagram p {
  padding: 20px;
  text-align: center;
}

.instagram a {
  display: inline-block;
  padding: 12px 20px;
  background: #a81212;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.instagram a:hover {
  background: #0066cc;
}

.flex-billed {
  display: flex;
  justify-content: center; /* centrerer billedet vandret */
  align-items: center; /* centrerer billedet lodret, hvis containeren har højde */
  width: 100%;
  max-width: 800px; /* valgfrit: sæt en max bredde */
  margin: auto;
}

.billed {
  max-width: 100%; /* gør billedet fleksibelt */
  height: auto; /* bevarer proportioner */
  display: block;
  padding-top: 20px;
  padding-bottom: 20px;
}
@media (min-width: 768px) {
  .flex-section {
    flex-direction: row; /* desktop: side om side */
  }
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 50%; /* desktop: kun venstre halvdel */
  height: 100%;
  background: url("vandmaerke.png") no-repeat center center;
  background-size: cover; /* billedet flexer */
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}
/* Når skærmen er under 768px (mobil) fylder vandmærket hele baggrunden */
@media (max-width: 768px) {
  body::before {
    width: 100%; /* fylder hele skærmen */
    height: 100%;
  }
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 30px; /* afstand ned til næste sektion */
  box-sizing: border-box;
}
.intro-text {
  flex: 1;
}
.intro img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

/* Mobil: billedet under teksten */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }

  .intro img {
    max-width: 80%;
    margin-top: 15px;
  }
}
/* Desktop layout: ved siden af hinanden */
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    align-items: stretch; /* samme højde */
  }
}
/* fjerner menu teksten og får burgermenu frem ved en bestemt bredde*/
@media screen and (max-width: 600px) {
  .topnav a {
    display: none;
  }
  .topnav .icon {
    display: block;
    font-size: 1em;
  }
  .responsive a {
    display: block;
    font-size: 1.2em;
  }
  .responsive {
    position: relative;
    padding: 60px 0 40px 0;
    flex-direction: column;
    /* align itmes bruges hvis noget skal rykkes lodret*/
    align-items: center;
  }
  .responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .logo a {
    display: block;
  }
}
