/* ------------------------------------------------------------------
   Delt stilark for 1881 sine sider (kundeservice + ny-sak m.fl.)
   Fargene --brand-orange / --brand-blue er hentet fra den offisielle
   1881-logoen (SVG). Header/footer-bakgrunn er satt til #03549A på
   forespørsel.
   ------------------------------------------------------------------ */
:root {
    --brand-orange: #ff6a26;
    --brand-blue: #8cc1ff;
    --brand-deep-blue: #03549a;
    --text-dark: #1a1a1a;
    --text-muted: #6b6b6b;
    --bg: #ffffff;
    --header-bg: #03549a;
    --header-border: #024580;
    --footer-bg: #03549a;
    --footer-text: #e6f0fa;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

/* display:flex + min-height:100vh på body, sammen med flex:1 på
   main.content nedenfor, gjør at footeren alltid ligger i bunnen av
   viewporten (sticky footer) selv når innholdet er kortere enn skjermen. */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

    .logo svg {
        width: 40px;
        height: auto;
        display: block;
    }

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-brand-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

    .header-brand-text:hover {
        text-decoration: underline;
    }

.header-cta {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

    .header-cta:hover {
        background-color: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.85);
    }

/* ---------- Main content / widget-område ---------- */
main.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
    width: 100%;
    flex: 1 0 auto;
}

/* Beholder for IDX/ITX-widget(er). La denne stå tom her —
   selve widget-innholdet rendres inn av scriptet i <body>-slutten. */
.widget-area {
    width: 100%;
}

/* Synlig plassholder for widgets som ikke er koblet inn ennå. */
.widget-placeholder {
    border: 2px dashed #c7d6e6;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    background: #f7fafd;
}

/* ---------- Feilsider (404/500) ---------- */
.error-page-wrap {
    display: flex;
    justify-content: center;
    padding: 48px 24px 80px;
    background: linear-gradient(180deg, #f2f8fd 0%, #ffffff 55%);
    border-radius: 16px;
}

.error-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #e7eef6;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(3, 84, 154, 0.09);
    padding: 56px 40px;
    text-align: center;
}

.error-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

    .error-badge svg {
        width: 28px;
        height: 28px;
        fill: #ffffff;
    }

.error-code {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-orange);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
}

.error-page h1 {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.error-page p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 34px auto;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

    .error-actions a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 26px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 15px;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }

        .error-actions a .arrow {
            transition: transform 0.15s ease;
        }

        .error-actions a:hover .arrow {
            transform: translateX(3px);
        }

    .error-actions .btn-primary {
        background: var(--brand-deep-blue);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(3, 84, 154, 0.25);
    }

        .error-actions .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(3, 84, 154, 0.32);
        }

    .error-actions .btn-secondary {
        border: 2px solid var(--brand-deep-blue);
        color: var(--brand-deep-blue);
        background: #ffffff;
    }

        .error-actions .btn-secondary:hover {
            background: #eef6fd;
            transform: translateY(-2px);
        }

@media (max-width: 600px) {
    .error-card {
        padding: 40px 24px;
    }

    .error-actions {
        flex-direction: column;
    }

        .error-actions a {
            width: 100%;
            justify-content: center;
        }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-panel {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-panel a {
        font-size: 14px;
        color: var(--footer-text);
        opacity: 0.85;
    }

        .footer-panel a:hover {
            opacity: 1;
            color: var(--brand-orange);
            text-decoration: underline;
        }

/* hidden-print: skjul footer-lenker (inkl. cookie-innstillinger) ved
   utskrift, siden de ikke gir mening på papir. */
@media print {
    .hidden-print {
        display: none;
    }
}

.footer-copy {
    font-size: 13px;
    color: var(--footer-text);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-brand-text {
        display: none;
    }

    .header-cta {
        padding: 7px 12px;
        font-size: 13px;
    }
}
