/* 1. Designvariabler og grundlayout */
:root {
    --navy: #0B172A;
    --navy-light: #13243A;
    --teal: #20B8AE;
    --blue: #3B82F6;
    --background: #F4F7F9;
    --white: #FFFFFF;
    --text: #172033;
    --muted: #5F6B7A;
    --border: #DFE5EB;
    --width: 1180px;
    --header-height: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--text); background: var(--background); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
svg { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.section-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }
.container { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(72px, 8vw, 112px); }
.section-dark { background: var(--navy); color: var(--white); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 5.1vw, 4.6rem); letter-spacing: -.05em; font-weight: 650; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 3.3vw, 3rem); letter-spacing: -.04em; font-weight: 650; margin-bottom: 24px; }
h3 { font-size: 1.14rem; font-weight: 650; line-height: 1.4; margin-bottom: 12px; }
p { margin-bottom: 20px; }
.eyebrow { display: block; color: #176D73; font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 22px; }
.section-dark .eyebrow { color: var(--teal); }
.lead { font-size: 1.1rem; line-height: 1.8; color: #BAC7D6; max-width: 580px; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 12px 20px; color: var(--navy); background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* 2. Header og navigation – sticky bevarer pladsen i dokumentet */
.site-header { position: sticky; top: 0; z-index: 50; color: white; background: var(--navy); border-bottom: 1px solid #263447; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.22rem; font-weight: 700; letter-spacing: -.025em; flex-shrink: 0; }
.brand-mark { display: flex; align-items: center; gap: 3px; height: 27px; transform: skewY(-15deg); }
.brand-mark span { width: 6px; height: 18px; background: var(--teal); border-radius: 1px; }
.brand-mark span:nth-child(2) { height: 27px; }
.brand-mark span:nth-child(3) { height: 22px; background: var(--blue); }
.brand-dot { color: var(--teal); }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 12px 0; text-decoration: none; color: #D1DAE5; font-size: .86rem; }
.menu a:hover, .menu a[aria-current="location"] { color: var(--teal); text-decoration: underline; }
.menu .nav-contact { border: 1px solid #59697D; padding: 9px 20px; border-radius: 6px; color: white; }
.menu-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; color: white; background: transparent; border: 1px solid #59697D; border-radius: 6px; cursor: pointer; }
.menu-glyph { width: 17px; height: 10px; border-block: 2px solid currentColor; }

/* 3. Knapper og hero */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 48px; background: var(--teal); color: var(--navy); border: 1px solid transparent; border-radius: 6px; padding: 13px 23px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.button:hover { background: #50CDC4; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.hero { background: radial-gradient(ellipse at 85% 40%, #142D43 0, var(--navy) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding-block: 85px 66px; }
.hero .eyebrow { font-size: .66rem; letter-spacing: .1em; }
.small-line { display: inline-block; width: 22px; height: 2px; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.hero h1 span { color: var(--teal); }
.hero-note { font-size: .75rem; color: #A6B6C8; margin: 25px 0 0; }
.technical-art { min-width: 0; }
.art-caption { display: flex; justify-content: center; align-items: center; gap: 10px; font-family: ui-monospace, monospace; font-size: .7rem; letter-spacing: .06em; color: #A6B6C8; }
.art-caption span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #2B3A4C; padding-block: 24px; gap: 24px; font-size: .75rem; color: var(--teal); }
.hero-principles strong { color: #C6D1DF; font-weight: 500; margin-left: 15px; }

/* 4. Ydelser */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--border); padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px #0B172A03; transition: border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { border-color: #8EBDBF; box-shadow: 0 10px 28px #0B172A08; }
.service-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.service-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: #EAF6F5; color: #176D73; margin-bottom: 26px; flex-shrink: 0; }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; }
.service-card-wide .service-icon { margin: 0; }
.service-card-wide > div { flex: 1; }
.service-card-wide .text-link { flex-shrink: 0; color: #176D73; }

/* 5. Rådgivning og arbejdsgang */
.advice { background: linear-gradient(115deg, var(--navy), var(--navy-light)); }
.advice .text-link { color: var(--teal); margin-top: 10px; }
.principle-list article { display: flex; gap: 24px; padding-block: 26px; border-bottom: 1px solid #344155; }
.principle-list article:first-child { padding-top: 0; }
.principle-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.principle-list article > span { color: var(--teal); font-family: ui-monospace, monospace; font-size: .8rem; padding-top: 4px; }
.principle-list p { color: #BAC7D6; font-size: .93rem; margin: 0; }
.workflow { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 48px 0 0; list-style: none; }
.steps li { border-top: 1px solid var(--border); padding-top: 24px; }
.step-number { display: inline-flex; width: 44px; height: 44px; border: 1px solid #B8D9DB; background: var(--background); border-radius: 50%; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: .8rem; color: #176D73; margin-bottom: 22px; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

/* 6. Om og kontakt */
.about { border-block: 1px solid var(--border); }
.about-panel { border: 1px solid #D4E1E6; border-radius: 12px; padding: clamp(28px, 4vw, 52px); background: linear-gradient(135deg, #E8EFF3, #EEF7F6); }
.about-panel > p { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; line-height: 1.4; font-weight: 600; margin-block: 38px; }
.about-panel > p span { color: #176D73; }
.panel-signature { font-size: .83rem; color: var(--muted); }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: .95rem; }
.about-copy .placeholder-note { font-size: .8rem !important; border-left: 2px solid #ADC5D2; padding-left: 16px; margin-bottom: 0; }
.placeholder-note strong { display: block; color: var(--text); font-weight: 600; }
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: center; }
.contact-grid > div > p:not(.eyebrow) { max-width: 450px; color: var(--muted); }
.contact-details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 30px; background: var(--background); }
.contact-item { padding-block: 24px; overflow-wrap: anywhere; }
.contact-item + .contact-item { border-top: 1px solid var(--border); }
.contact-item h3 { font-size: .78rem; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.contact-item a, .contact-placeholder { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; margin: 0; }
.contact-item a { display: inline-block; padding-block: 4px; }
.field-note { display: block; color: var(--muted); font-size: .75rem; margin-top: 6px; }

/* 7. Footer */
.site-footer { color: #B8C5D6; background: var(--navy); padding-top: 52px; font-size: .85rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-bottom: 40px; }
.footer-top .brand { color: white; margin-bottom: 12px; }
.footer-top p { margin: 0; }
.footer-link { color: white; padding-block: 12px; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-link span { color: var(--teal); margin-left: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #2B3A4C; padding-block: 22px; font-size: .75rem; }
.footer-bottom p { margin: 0; }

/* 8. Tablet og mobil. Links forbliver synlige uden JavaScript. */
@media (max-width: 1000px) {
    .menu { gap: 16px; }
    .menu a { font-size: .79rem; }
    .hero-grid { gap: 8px; }
    .split-grid, .contact-grid { gap: 44px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-card-wide { flex-wrap: wrap; }
    .service-card-wide > div { flex-basis: 70%; }
}
@media (max-width: 800px) {
    :root { --header-height: 76px; }
    .container { width: calc(100% - 40px); }
    .header-inner { flex-wrap: wrap; padding-block: 16px; gap: 12px; }
    .navigation { width: 100%; }
    .menu { flex-wrap: wrap; gap: 4px 20px; }
    .navigation.is-enhanced { width: auto; margin-left: auto; }
    .is-enhanced .menu-toggle { display: inline-flex; }
    .is-enhanced .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 20px 24px; background: var(--navy); border-bottom: 1px solid #344155; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; box-shadow: 0 15px 20px #0B172A20; }
    .is-enhanced .menu.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
    .menu a { font-size: 1rem; min-height: 44px; }
    .menu .nav-contact { margin-top: 8px; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 56px 36px; }
    .hero-copy { max-width: 620px; }
    .technical-art { width: min(440px, 100%); margin: 20px auto 0; }
    .section-heading, .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .section-heading > p { max-width: 600px; }
    .hero-principles { gap: 12px; font-size: .67rem; }
    .hero-principles strong { display: block; margin: 6px 0 0; }
    .footer-top { align-items: flex-start; }
}
@media (max-width: 540px) {
    h1 { font-size: clamp(2.55rem, 10.5vw, 3.5rem); }
    .section { padding-block: 64px; }
    .service-grid, .steps { grid-template-columns: 1fr; }
    .service-card { padding: 26px; }
    .service-card-wide { display: block; }
    .service-card-wide .service-icon { margin-bottom: 26px; }
    .service-card-wide .text-link { margin-top: 18px; }
    .actions { gap: 12px 24px; }
    .hero-note { max-width: 280px; }
    .technical-art { max-width: 340px; }
    .steps { gap: 24px; }
    .step-number { margin-bottom: 16px; }
    .footer-top, .footer-bottom { flex-direction: column; gap: 16px; }
    .contact-details { padding-inline: 22px; }
}

/* 9. Kun diskrete interaktioner; ingen bevægelse ved reduceret motion. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .button:hover { transform: none; }
}
