/* Global styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f8f8;
    background-image: url('/images/bg1.png'); /* Sti til dit billede */
    background-size: cover; /* Sørg for, at billedet dækker hele baggrunden */
    background-position: center; /* Centrer billedet */
    background-attachment: fixed; /* Holder baggrunden fast, når man scroller */
    background-repeat: no-repeat; /* Forhindrer gentagelse af billedet */
}

header {
    position: sticky;
    top: 0;
    background-color: #fff;
    color: #333;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    box-sizing: border-box;
}

header .header-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    flex: 1;
    display: flex;
    align-items: center;
}

header .logo img {
    max-height: 50px;
    height: auto;
    width: auto;
}

header nav {
    flex: 2;
    display: flex;
    justify-content: left;
    gap: 1.5rem;
}

header nav a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

.hamburger {
    display: none; 
    width: 41px;
    margin-right: 0.5em;
    margin-bottom: 0px;
}

/* Mobil menu */
@media (max-width: 801px) {
    header .header-container, .content {
        max-width: 700px;
    }
    
    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    width: 100%;
    text-align: center;
}

.mobile-menu a:hover {
    background-color: #f4f4f4;
}

.content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.articles {
    flex: 1;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    border-radius: 8px;
    margin-right: 1rem;
}

/* Sticky sidebar */
.sidebar {
    position: sticky;
    top: 1rem; /* Afstand til toppen */
    align-self: start;
    height: fit-content;
    padding: 1.5rem;
    background-color: #f4f4f4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    width: 250px;
}

footer {
    background: #fff;
    color: #333;
    text-align: center;
    padding: 0.2rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    header .header-container {
        text-align: center;
    }

    .content {
        flex-direction: column;
        padding: 1rem 2rem;
    }

    .articles {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
    }
}

img {
    width: 100%;
    border: 0px solid black;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

form {
    margin-top: 30px;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #3498db;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

#result-box {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #3498db;
    background-color: #eaf4fc;
    border-radius: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.article-image {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    width: 200px;
    border-radius: 8px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    z-index: 1000;
}

#cookie-banner button {
    background-color: #f4b400;
    color: black;
    border: none;
    padding: 10px 20px;
    margin-left: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 120px;
    height: 40px;
}

#cookie-banner button:hover {
    background-color: #e5a200;
}

.hr-line {
  width: 95%;           /* Skillelinjen fylder 90% af bredden */
  margin: 40px auto;    /* Centrerer linjen og giver lidt afstand på top og bund */
  border: 0;            /* Fjerner standardgrænsen */
  border-top: 2px solid #333;  /* Tilføjer en sort linje som skillelinje */
}

/* Styles for 5-column layout */
/* Generel styling for rækker */
.row {
  display: flex;
  width: 100%;
}

/* Styling for flere kolonner */
.column {
  padding: 5px;
  box-sizing: border-box;
  text-align: center;
}

.column img {
  max-width: 100%;
  border-radius: 15px; /* Juster værdien for ønsket runding */
  height: auto;
}

/* Specifik styling for kolonner med forskellig bredde */
.column-1 {
  width: 32%;
  background-color: #fff;
}

.column-2 {
  width: 2%;
  background-color: #fff;
}

.column-3 {
  width: 32%;
  background-color: #fff;
}

.column-4 {
  width: 2%;
  background-color: #fff;
}

.column-5 {
  width: 32%;
  background-color: #fff;
}

/* Styling for en enkelt kolonne */
.single-column-row {
  display: flex;
  justify-content: center; /* Centrerer kolonnen vandret */
  width: 100%;
}

.single-column {
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  width: 100%; /* Juster bredden på kolonnen */
  background-color: #fff; /* Baggrundsfarve */
  border: 1px solid #ddd; /* Tilføj valgfri kant */
  border-radius: 10px; /* Afrundede hjørner på kolonnen */
}

.single-column img {
  max-width: 100%; /* Sørger for billedet tilpasser kolonnens bredde */
  height: auto; /* Bevarer billedets proportioner */
  border-radius: 15px; /* Afrunder hjørnerne på billedet */
}