
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;

    background: #3f719d;
    color: #17324d;

    font-family: Arial, Helvetica, sans-serif;
}


/* =========================
   HEADER
   ========================= */

header {
    width: 100%;
    padding: 30px 40px 22px;

    display: flex;
    flex-direction: column;

    background: #3f719d;
    color: #ffffff;
}

.bfd-header-top {
    width: 100%;

    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 30px;
}

.bfd-header-top > a {
    justify-self: start;
}


/* =========================
   LOGOER
   Lys bag selve motivet
   Uden stor hvid cirkel
   ========================= */

.logo,
.logo-right {
    display: block;

    width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    object-fit: contain;

    padding: 0;

    background: radial-gradient(
        circle closest-side at 52% 47%,
        #ffffff 0 69%,
        rgba(255, 255, 255, 0.65) 75%,
        transparent 81%
    );

    border-radius: 0;
    box-shadow: none;
}

.logo-right {
    justify-self: end;
}


/* =========================
   OVERSKRIFT OG INTRO
   ========================= */

.headertext {
    min-width: 0;
    text-align: center;
}

.headertext h1 {
    margin: 0 0 24px;

    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.bfdintro {
    max-width: 760px;
    margin: 0 auto;

    font-size: 1.15rem;
    line-height: 1.6;
}

.bfdintro p {
    margin: 10px 0;
}


/* =========================
   FEM KNAPPER NEDERST I HEADER
   ========================= */

.bfd-nav {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.bfd-nav a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 10px;

    background: #ffffff;
    color: #17324d;

    border-radius: 8px;

    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;

    transition:
        background 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.bfd-nav a:hover,
.bfd-nav a:focus-visible {
    background: #17324d;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================
   HOVEDINDHOLD
   ========================= */

main {
    flex: 1;

    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 40px 0;
}

section {
    padding: 30px;

    background: #ffffff;
    border-radius: 14px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

section h2 {
    margin: 0 0 18px;

    text-align: center;
    font-size: 2rem;
    color: #17324d;
}


/* =========================
   TEKST
   ========================= */

.news {
    font-size: 1.1rem;
    line-height: 1.6;
}

.news p {
    margin: 0 0 12px;
}

.news h2 {
    margin: 26px 0 16px;
}


/* =========================
   FOOTER
   ========================= */

footer {
    padding: 22px 20px;

    text-align: center;
    color: #ffffff;
}

footer p {
    margin: 0;
}


/* =========================
   TABLET OG MOBIL
   ========================= */

@media (max-width: 750px) {

    header {
        padding: 22px 16px;
    }

    .bfd-header-top {
        grid-template-columns: 1fr 1fr;
        gap: 14px 8px;
    }

    .bfd-header-top > a {
        grid-column: 1;
        grid-row: 1;
    }

    .logo-right {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .headertext {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .logo,
    .logo-right {
        width: 85px;
        padding: 0;
    }

    .headertext h1 {
        margin-bottom: 16px;
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .bfdintro {
        font-size: 1rem;
    }

    .bfd-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 20px;
    }

    .bfd-nav a {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 0.95rem;
    }

    .bfd-nav a:last-child {
        grid-column: 1 / -1;
    }

    main {
        width: calc(100% - 24px);
        padding: 24px 0;
    }

    section {
        padding: 22px 18px;
    }
}


/* =========================
   SMÅ MOBILER
   ========================= */

@media (max-width: 500px) {

    .logo,
    .logo-right {
        width: 65px;
    }

    .headertext h1 {
        font-size: 1.55rem;
    }

    .bfdintro {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .bfd-nav a {
        font-size: 0.85rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}
