/* =========================================================
   RESET & BASE
   Grundlæggende styling for hele siden
========================================================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 15px;             /* Basis tekststørrelse */
    line-height: 1.5;            /* Læsbar afstand */
    background: #ffffff;

    display: flex;
    flex-direction: column;
    min-height: 100vh;           /* Footer i bund */
}


/* =========================================================
   LAYOUT
========================================================= */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem;
}

main {
    flex: 1;                     /* presser footer ned */
}


/* =========================================================
   TYPOGRAFI
   Overskrifter og tekst
========================================================= */

h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.15rem;
    margin-top: 2.2rem;
    margin-bottom: 0rem;
}

h3 {
    font-size: 1rem;
}

p,
li {
    font-size: 0.9rem;
}

/* spacing mellem tekstblokke */
main p {
    margin-bottom: 0.8rem;
}

main ul,
main ol {
    margin-bottom: 1rem;
}


/* =========================================================
   HEADER
========================================================= */

header {
    background: linear-gradient(
        to bottom,
        #004b6b 0%,
        #005f85 60%,
        #004b6b 100%
    );
    color: white;
	
    position: sticky;   /* gør den fast */
    top: 0;             /* klistrer til toppen */
    z-index: 1000;      /* sørger for den ligger ovenpå */
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);	/* skygge */
}

/* TOP BAR (menu + titel) */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.header-cvr {
    display: none;          /* skjult på mobil */
}


/* Titel */
.site-title {
    margin: 0;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: right;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   MENU BUTTON (burger)
========================================================= */

.menu-toggle {
    background: #004b6b;
    border: none;
    color: white;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 100%;
    padding: 0;
}

/* Burger ikon */
.burger-lines {
    width: 22px;
    height: 2px;
    background: white;
    position: relative;
}

.burger-lines::before,
.burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: white;
}

.burger-lines::before {
    top: -6px;
}

.burger-lines::after {
    top: 6px;
}


/* =========================================================
   NAVIGATION (mobil default)
========================================================= */

nav {
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: none;               /* skjult */
    background: #004b6b;
    width: 100%;
}

nav.open ul {
    display: block;              /* vis menu */
}

nav li {
    border-top: 1px solid rgba(255,255,255,0.1);
}

nav a {
    display: block;
    padding: 0.75rem;
    color: white;
    text-decoration: none;
}

nav a:hover {
    background: #006d9c;
}

/* Fremhævet element */
.highlight a {
    background: #0088cc;
    font-weight: bold;
}


/* =========================================================
   BILLEDER
========================================================= */

/* Standard billede (mobil) */
.hero-image {
    display: block;
    max-width: 85%;
    height: auto;
    margin: 1rem auto;
    border: 1px solid #ccc;
    border-radius: 6px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);	/* skygge */
}

.hero-figure {
    margin: 1rem 0;
    text-align: center;
}

/* =========================================================
   FORSIDE CARDS
========================================================= */

.card {
	display: block;
	padding: 1.2rem;
	background: #f4f7f9;                 
	text-decoration: none;
	color: black;
	border-radius: 8px;
	width: 100%;
	max-width: 400px;
    margin: 0 auto;	
	transition: all 0.2s ease;
	border: 1px solid #e1e5e8;
	box-sizing: border-box;	
}
	
.card:hover {
	background: #e9f2f7;
	transform: translateY(-3px);          /* lille løft */
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
	
.card h3 {
	margin-top: 0;
	margin-bottom: 0.4rem;
	font-size: 1.1rem;
}

.card p {
	margin: 0;
	font-size: 0.9rem;
	color: #555;
}

.cards {
	display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
}


/* =========================================================
   PDF LISTE
========================================================= */

.pdf-list {
    list-style: none;
    padding: 0;
}

.pdf-list li {
    margin-bottom: 0.5rem;
}

.pdf-list a {
    color: #004b6b;
    text-decoration: none;
}

.pdf-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #eeeeee;
    text-align: center;
    padding: 0.5rem;
    margin-top: 2rem;
    font-size: 0.7rem;
	border-top: 1px solid #ddd; 
}


/* =========================================================
   Kontact liste
========================================================= */

.contact-list {
    padding-left: 3rem;
	max-width: 300px;
}

.contact-list li {
	padding: 0.5rem;
    background: #f4f7f9;
	border: 1px solid #e1e5e8;
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

/* selve linjen */
.contact-row {
    display: flex;
    justify-content: space-between;  /* 👈 venstre / højre */
    align-items: center;
    gap: 0.5rem;
}

/* venstre side */
.contact-left {
    display: block;
}

/* telefon (højre side) */
.contact-phone {
    text-decoration: none;
    color: #004b6b;
    font-weight: bold;
    white-space: nowrap;
}

/* hover */
.contact-phone:hover {
    text-decoration: underline;
}


/* =========================
   BESTYRELSE GRID
========================= */


.board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Card (samme stil som forsiden) */
.board-card {
    background: #f4f7f9;
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    padding: 1rem;

    transition: all 0.2s ease;
}

/* Hover effekt */
.board-card:hover {
    background: #e9f2f7;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* fremhæv første kort */
.board-card:first-child {
    border-left: 4px solid #004b6b;
}

/* Titel (rolle) */
.board-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #004b6b;
}

/* Layout venstre/højre */
.board-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Venstre side (navn + adresse) */
.board-left {
    max-width: 60%;
}

.board-left p {
    margin: 0.2rem 0;
}

/* Højre side (kontakt) */
.board-right {
    text-align: right;
    white-space: nowrap;
}

/* Telefon */
.contact-phone {
    font-weight: bold;
    text-decoration: none;
    color: #004b6b;
}

/* Mail */
.contact-mail {
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
}

/* Hover på links */
.contact-phone:hover,
.contact-mail:hover {
    text-decoration: underline;
}

/* =========================
   Kollaps dokumenter
========================= */

details {
    margin-top: 0.8rem;
    margin-bottom: 1.5rem;
}

summary {
    cursor: pointer;
    padding: 0.5rem;
    background: #f4f7f9;
    border-radius: 6px;
    font-size: 0.9rem;
}

summary:hover {
    background: #e9f2f7;
}





/* =========================================================
   DESKTOP (tablet +)
========================================================= */

@media (min-width: 768px) {

    /* større basis typografi */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }
	
	p {
		font-size: 1rem;
	}

    /* skjul burger */
    .menu-toggle {
        display: none;
    }

    /* større titel */
    .site-title {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        text-align: center;
        width: 100%;
    }

    /* større header */
    header {
        padding-top: 30px;
        padding-bottom: 0;
		position: static;    /* stopper sticky når desktop */
    }
	
	.header-cvr {
        display: block;
        font-size: 0.7rem;
        color: rgba(255,255,255,0.8);
        text-align: right;
        padding: 0 0.75rem 0px 0;
		margin-bottom: -12px;
    }

    /* menu som linje */
    nav ul {
        display: flex;
        justify-content: center;
        gap: 1.5rem;

        background: #003b55;
        margin-top: 15px;
    }

    nav li {
        border-top: none;
    }

    nav a {
        padding: 0.75rem;
    }

    /* billede højre side */
	.hero-figure {
        float: right;              
        max-width: 55%;
        margin: 0 0 1rem 1rem;
        text-align: center;
    }

	.hero-image {
        max-width: 100%;
        margin: 0 0 1rem 1rem;
    }
	
	.image-disclaimer {
		margin-top: -0.7rem;
		font-size: 0.7rem;
	}

	
	.cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .card {
        max-width: none;
		margin: 0; 
        box-sizing: border-box;
    }
	
	.board-grid {
        grid-template-columns: repeat(2, 1fr);  /* 👈 2 kolonner */
        gap: 1.5rem;
    }

}