:root {
    --bg: #f4f1ea;
    --bg-soft: #fbf8f1;
    --paper: #ffffff;
    --ink: #17211c;
    --muted: #66736b;
    --line: rgba(23, 33, 28, 0.12);
    --green: #174f3f;
    --green-2: #0e352b;
    --sage: #dce8d6;
    --gold: #d8a84d;
    --terracotta: #b96b45;
    --shadow: 0 24px 70px rgba(23, 33, 28, 0.16);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(216, 168, 77, 0.18), transparent 34rem),
        linear-gradient(135deg, #f7f2e8 0%, #eef4ea 48%, #f4f1ea 100%);
    line-height: 1.6;
}

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

img,
svg {
    max-width: 100%;
}

main {
    min-height: 70vh;
}

.topline {
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--terracotta));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 12px 28px rgba(23, 79, 63, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav a {
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--ink);
    background: rgba(23, 79, 63, 0.08);
}

.main-nav .portal-link {
    margin-left: 0.35rem;
    color: #fff;
    background: var(--green);
    box-shadow: 0 10px 26px rgba(23, 79, 63, 0.22);
}

.main-nav .portal-link:hover {
    color: #fff;
    background: var(--green-2);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.7);
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 99px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 1.5rem;
    border-radius: 44px;
    background:
        linear-gradient(135deg, rgba(23,79,63,0.94), rgba(14,53,43,0.92)),
        radial-gradient(circle at 20% 20%, rgba(216,168,77,0.55), transparent 28rem);
    box-shadow: var(--shadow);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(110deg, rgba(255,255,255,0.12), transparent 36%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 90px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 3rem;
    color: #fff;
}

.hero-content {
    max-width: 690px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero h1,
.page-hero h1 {
    margin: 1rem 0 1.2rem;
    font-size: clamp(3.2rem, 7vw, 6.6rem);
    line-height: 0.92;
    letter-spacing: -0.08em;
}

.hero-lead,
.page-hero p {
    max-width: 620px;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.82);
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 16px 34px rgba(23, 79, 63, 0.25);
}

.hero .btn-primary {
    color: var(--green-2);
    background: #fff;
}

.btn-soft {
    color: var(--green-2);
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(23,79,63,0.12);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.45);
}

.btn-light {
    color: var(--green-2);
    background: #fff;
}

.btn.full {
    width: 100%;
}

.hero-panel {
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    backdrop-filter: blur(18px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.3rem 1rem;
    color: rgba(255,255,255,0.76);
}

.panel-header strong {
    color: #fff;
}

.status-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 24px;
    color: var(--ink);
    background: #fff;
}

.status-card p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.status-dot {
    width: 12px;
    height: 12px;
    margin-top: 0.45rem;
    border-radius: 99px;
    background: var(--gold);
    box-shadow: 0 0 0 7px rgba(216, 168, 77, 0.2);
    flex: 0 0 auto;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.mini-grid div {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
}

.mini-grid strong,
.mini-grid span {
    display: block;
}

.mini-grid strong {
    font-size: 1.5rem;
}

.mini-grid span {
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2rem;
}

.section-heading.compact {
    margin-bottom: 1.5rem;
}

.section-heading h2,
.content-card h2,
.cta-section h2 {
    margin: 0.75rem 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.section-heading p,
.content-card p,
.service-card p,
.feature-card p,
.info-card p {
    color: var(--muted);
}

.feature-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card,
.service-card,
.content-card,
.info-card,
.contact-card,
.login-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.76);
    box-shadow: 0 16px 46px rgba(23, 33, 28, 0.08);
}

.feature-card,
.service-card {
    padding: 1.45rem;
}

.highlight-card {
    background: linear-gradient(135deg, #fff, #edf5e9);
}

.icon-badge {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(23,79,63,0.09);
    font-size: 1.4rem;
}

.feature-card h3,
.service-card h3 {
    margin: 1.1rem 0 0.4rem;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 1rem;
}

.content-card {
    padding: 2rem;
}

.dark-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(23,79,63,0.98), rgba(14,53,43,0.96));
}

.dark-card p {
    color: rgba(255,255,255,0.75);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.3rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.check-list li {
    display: flex;
    gap: 0.6rem;
    color: rgba(255,255,255,0.9);
}

.check-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 900;
}

.dashboard-preview {
    min-height: 420px;
    border-radius: 36px;
    background: #102e27;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-topbar {
    display: flex;
    gap: 0.45rem;
    padding: 1rem;
    background: rgba(255,255,255,0.08);
}

.preview-topbar span {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: rgba(255,255,255,0.42);
}

.preview-content {
    padding: 1.6rem;
    color: #fff;
}

.preview-title small,
.preview-title strong {
    display: block;
}

.preview-title small {
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.preview-title strong {
    margin-top: 0.4rem;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.preview-cards div {
    min-height: 118px;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.12);
}

.preview-cards strong,
.preview-cards span {
    display: block;
}

.preview-cards strong {
    font-size: 1.45rem;
}

.preview-cards span {
    margin-top: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.preview-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.preview-list span {
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
}

.service-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card span {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    color: var(--green-2);
    background: var(--sage);
    font-weight: 900;
}

.cta-section {
    width: min(1180px, calc(100% - 32px));
    margin: 2rem auto 5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(216,168,77,0.42), transparent 22rem),
        linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: var(--shadow);
}

.cta-section p {
    color: rgba(255,255,255,0.76);
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 5rem 0;
}

.small-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.text-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: start;
}

.info-card,
.contact-card {
    padding: 1.6rem;
}

.info-card ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.contact-form,
.login-card {
    display: grid;
    gap: 1rem;
}

.contact-form label,
.login-card label {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font: inherit;
    color: var(--ink);
    background: rgba(255,255,255,0.9);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(23,79,63,0.45);
    box-shadow: 0 0 0 4px rgba(23,79,63,0.08);
}

.login-page {
    padding: 5rem 0;
}

.login-shell {
    width: min(1050px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.2rem;
    align-items: stretch;
}

.login-copy {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at top left, rgba(216,168,77,0.42), transparent 22rem),
        linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: var(--shadow);
}

.login-copy h1 {
    margin: 1rem 0;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.login-copy p {
    max-width: 520px;
    color: rgba(255,255,255,0.78);
    font-size: 1.1rem;
}

.login-card {
    padding: 2rem;
    align-self: center;
}

.login-card h2 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.login-card a {
    color: var(--green);
    font-weight: 750;
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.48);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 2.2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-inner p {
    max-width: 620px;
    margin: 0.4rem 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--green);
    font-weight: 800;
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 88px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(255,255,255,0.96);
        box-shadow: var(--shadow);
    }

    .nav-open .main-nav {
        display: flex;
    }

    .main-nav .portal-link {
        margin-left: 0;
        text-align: center;
    }

    .hero {
        padding: 1rem 0 3rem;
    }

    .hero-bg {
        inset: 0.8rem;
        border-radius: 32px;
    }

    .hero-inner,
    .split-section,
    .text-layout,
    .contact-layout,
    .login-shell {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding: 4rem 0;
        gap: 2rem;
    }

    .feature-grid,
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-section,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-card {
        align-self: stretch;
    }
}

@media (max-width: 620px) {
    .header-inner {
        height: 74px;
    }

    .brand-text small {
        display: none;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .hero-lead,
    .page-hero p {
        font-size: 1rem;
    }

    .hero-actions,
    .mini-grid,
    .preview-cards,
    .feature-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .service-grid,
    .mini-grid,
    .preview-cards {
        display: grid;
    }

    .section {
        padding: 3rem 0;
    }

    .dashboard-preview {
        transform: none;
    }

    .login-copy,
    .content-card,
    .cta-section {
        padding: 1.4rem;
    }
}


/* ------------------------------------------------------------
   Lærkevang logo / header identity
   ------------------------------------------------------------ */
.brand {
    min-width: 0;
}

.brand-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 35% 45%, rgba(216, 168, 77, 0.30), transparent 42%),
        linear-gradient(135deg, rgba(23,79,63,0.10), rgba(220,232,214,0.65));
    border: 1px solid rgba(23, 79, 63, 0.12);
    box-shadow: 0 14px 30px rgba(23, 79, 63, 0.14);
}

.brand-logo img {
    width: 44px;
    height: 44px;
    display: block;
}

.brand-text strong {
    font-size: 1.12rem;
}

.brand-text small {
    font-weight: 600;
}

@media (max-width: 620px) {
    .brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }

    .brand-logo img {
        width: 36px;
        height: 36px;
    }
}

/* Logo i header */
.brand-mark-logo {
    background: #fff;
    border: 1px solid rgba(23, 79, 63, 0.12);
    box-shadow: 0 12px 28px rgba(23, 79, 63, 0.16);
    overflow: hidden;
}

.brand-mark-logo img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.alert {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(185, 107, 69, 0.28);
    color: #7b321f;
    background: rgba(185, 107, 69, 0.09);
    font-weight: 700;
}
