
:root {
    --ink: #17251f;
    --muted: #68756e;
    --green: #174d3b;
    --cream: #f5f4ee;
    --line: #dfe5df;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, Segoe UI, sans-serif;
}

.panel {
    width: min(100% - 32px, 460px);
    margin: 8vh auto;
    background: white;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px #1b33200d;
}

.brand {
    font-size: 13px;
    letter-spacing: .19em;
    font-weight: 800;
    color: var(--green);
}

h1 {
    font-size: 30px;
    line-height: 1.15;
    margin: 18px 0 10px;
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    font-weight: 650;
    margin: 22px 0 7px;
}

input {
    width: 100%;
    padding: 14px 13px;
    border: 1px solid #cbd5cd;
    border-radius: 9px;
    font: inherit;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: 0;
    border-radius: 9px;
    background: var(--green);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.notice {
    padding: 12px 14px;
    border-radius: 9px;
    background: #eef4ef;
    border: 1px solid var(--line);
}

.foot {
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
}

.foot a,
.topbar a {
    color: var(--green);
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 22px max(24px, calc((100% - 1080px)/2));
    background: white;
    border-bottom: 1px solid var(--line);
}

.content {
    max-width: 1080px;
    margin: 56px auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--green);
    font-weight: 800;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.tiles article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 23px;
    min-height: 220px;
}

.tiles h2 {
    font-size: 19px;
    margin: 18px 0 6px;
}

.tiles p {
    color: var(--muted);
}

.tile-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: #edf3ee;
    color: var(--green);
    border-radius: 10px;
    font-weight: 800;
}

/* Knapper på oversiktskortene */
.tile-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 12px 16px;
    background: var(--green);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    transition: background .2s ease, transform .2s ease;
}

.tile-button:hover {
    background: #103b2d;
    transform: translateY(-1px);
}

.tile-button:focus-visible {
    outline: 3px solid #b8cdbd;
    outline-offset: 3px;
}

.tile-button span {
    font-size: 20px;
    line-height: 1;
}

@media(max-width:520px) {
    .panel {
        padding: 26px;
    }

    .content {
        margin-top: 34px;
    }

    .tiles {
        grid-template-columns: 1fr;
    }

    .tiles article {
        min-height: 0;
    }

    .tile-button {
        min-height: 54px;
        padding: 14px 16px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .tile-button {
        transition: none;
    }
}
