@charset "UTF-8";

/* –– GLOBALT –– */

body {
    /* System font stack for clean, consistent reading */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    color: #111;
    padding-top: 80px; /* Gi plass til fixed header */
}

/* Ensure body text elements use the same font sizing */
p, li, dd, dt { font-size: 1rem; }

/* Preformatted blocks use monospace but keep size consistent */
pre { font-family: Menlo, Monaco, monospace; font-size: 0.95rem; white-space: pre-wrap; }

/* Headings: choose a serif for visual contrast while body remains sans-serif */
h1, h2, h3, h4, h5 { font-family: Georgia, "Times New Roman", serif; color: #0B3C91; margin-top: 0.6em; margin-bottom: 0.4em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

/* –– HEADER –– */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center; /* Meny midtstilles */
    align-items: center;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Logo i venstre hjørne */
.header .logo {
    position: absolute;
    left: 24px;
}

.header .logo a {
    font-size: 1.75rem;
    font-weight: bold;
    text-decoration: none;
    color: #0B3C91;
}

/* –– MENY –– */

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu a,
.dropbtn {
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: #0B3C91;
    padding: 6px 10px;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.menu a:hover,
.dropbtn:hover {
    color: white;
    background-color: #0B3C91;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 2000;
    list-style: none; /* fjern punkter */
    margin: 0; /* fjern standard venstremarg */
    padding: 6px 0; /* litt vertikal padding for innhold */
}

.dropdown-content li { list-style: none; }
.dropdown-content a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #111;
}

/* Subtle divider between dropdown items */
.dropdown-content li + li a {
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* Improve tap target on mobile */
.dropdown-content a {
    padding: 14px 16px;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* –– INNHOLD –– */

.content {
    max-width: 1200px;
    margin: 4px auto 32px auto;
    padding: 0 16px;
}

/* Page layout with side ad columns and centered content */
.page-layout {
    display: grid;
    grid-template-columns: 160px minmax(280px, 900px) 160px;
    gap: 20px;
    align-items: start;
    justify-content: center;
    padding: 18px 12px;
}

.page-layout .ad-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-layout .center-col {
    width: 100%;
}

/* Make layout responsive: collapse side columns on small screens */
@media (max-width: 1000px) {
    .page-layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .page-layout .ad-col { display: none; }
}

/* –– KORT / KORTGRID –– */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card h3 {
    margin: 8px 0;
}

.card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card p {
    margin: 6px 0;
}

/* –– ADS –– */

.ad-container.top {
    max-height: 120px;
    overflow: hidden;
    margin: 8px auto;
}

.ad-container.mid {
    margin: 24px 0;
    max-height: none;
}

.adsbygoogle {
    max-width: 728px;
    width: 100%;
}

/* Visual style for the small ad-note that explains content continues */
.ad-note,
.main-article p em {
    color: #6b7280; /* muted gray */
    font-size: 0.95rem;
    display: block;
    margin: 12px 0;
    text-align: center;
}

/* Ensure bottom ads have breathing room from surrounding content/footer */
.ad-container.bottom {
    margin: 18px 0 20px;
}

/* Page grid for article + sidebar */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.main-article {
    background: white;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar {
    position: relative;
}

.sidebar-ad {
    position: sticky;
    top: 100px;
}

/* Hide sidebar on small screens and adjust grid */
@media (max-width: 980px) {
    .page-grid {
        grid-template-columns: 1fr;
    }
    .desktop-only { display: none; }
}

/* –– RESPONSIV –– */

@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-container.top {
        max-height: 90px;
    }
}

/* Consent banner styles */
.consent-banner{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    padding: 12px 16px;
    z-index: 3000;
}
.consent-inner{ max-width:1100px; margin:0 auto; display:flex; gap:12px; align-items:center; justify-content:space-between; }
.consent-text{ color:#111; font-size:14px; }
.consent-actions{ display:flex; gap:8px; }
.consent-btn{ padding:8px 12px; border-radius:6px; border:1px solid #ccc; background:#fff; cursor:pointer; }
.consent-btn.primary{ background:#0B3C91; color:#fff; border-color:#0B3C91; }

@media (max-width:600px){ .consent-inner{ flex-direction:column; align-items:flex-start } .consent-actions{ width:100%; justify-content:flex-end } }

.article-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}
@media (max-width: 768px) {
    /* Øk header-høyde så menyen får plass */
    .header {
        height: auto;
        flex-direction: column;
        padding: 12px 0 16px 0;
    }

    /* Logo i midten på mobil */
    .header .logo {
        position: static;
        margin-bottom: 6px;
    }

    /* Menyen i en kolonne */
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Dropdown justert for mobil */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: #f7f7f7;
        width: 100%;
        text-align: center;
        border-radius: 0;
        padding: 0;
    }

    .dropdown-content a {
        padding: 12px;
    }
}


.image-container {
    display: inline-block;
    margin: 10px;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
}

/* Gallery grid: responsive, consistent image aspect ratio */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
    padding: 12px 0;
}

.image-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.image-container img {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
    object-fit: cover;
    display: block;
}

.image-container p {
    padding: 10px 12px;
    margin: 0;
    font-size: 0.95rem;
    color: #222;
}

/* Styles for the checklist box used on Regnskap.html */
.checklist {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    border-left: 4px solid #0B3C91;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 12px 0 18px 0;
}
.checklist ul { margin: 8px 0 0 1.1rem; }
.checklist li { margin: 8px 0; }

/* Brand examples: color swatches and font samples */
.brand-examples { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 18px; }
.color-swatch { display:flex; align-items:center; gap:8px; background:#fff; padding:8px; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.04); }
.color-swatch .swatch { width:56px; height:40px; border-radius:6px; border:1px solid rgba(0,0,0,0.06); }
.color-swatch .swatch-label { font-size:0.9rem; }
.font-sample { background:#fff; padding:10px 12px; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.04); max-width:520px; }
.font-name { font-size:0.85rem; color:#6b7280; margin-top:6px; }
.font-demo { margin-top:6px; font-size:1rem; }

@media (min-width: 1100px) {
    .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Footer: center text on all pages */
footer { text-align: center; padding: 14px 0; color: #444; }
footer p { margin: 0; }
