/* ministryhub.dk – samme farver som appen */
:root {
    --teal: #1f5f74;
    --teal-dark: #164656;
    --ink: #1d2b33;
    --muted: #56636c;
    --paper: #f2f5f4;
    --line: #d3dad8;
    --white: #ffffff;
    --green: #2f9e44;
    --radius: 6px;
    --heading: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
img { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .15em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* ---------- Top ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__inner { max-width: 72rem; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 700 1.2rem var(--heading); flex: none; }
.nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: .45rem .7rem; border-radius: var(--radius); white-space: nowrap; font-size: .97rem; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--teal); background: #e3eef1; font-weight: 600; }
@media (max-width: 760px) {
    .top__inner { flex-wrap: wrap; gap: .4rem; padding-bottom: .4rem; }
    .nav { margin: 0 -1.25rem; padding: 0 1.25rem .3rem; width: calc(100% + 2.5rem); }
}

/* ---------- Indhold ---------- */
main { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding: 4rem 0 3rem; }
.hero__text { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.button { display: inline-block; background: var(--teal); color: var(--white); text-decoration: none; padding: .75rem 1.3rem; border-radius: var(--radius); font-weight: 600; }
.button:hover { background: var(--teal-dark); color: var(--white); }
.button--quiet { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.button--quiet:hover { background: #e3eef1; color: var(--teal-dark); }
.languages { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.4rem; color: var(--muted); font-size: .95rem; }
.languages span { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: .15rem .65rem; color: var(--ink); }

.page-intro { padding: 3.5rem 0 1rem; max-width: 42rem; }

/* Oversigten over områder på forsiden: en liste, ikke ens kort */
.areas { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--line); }
.areas li { margin: 0; border-bottom: 1px solid var(--line); }
.areas a { display: grid; grid-template-columns: 2.6rem 1fr; gap: .2rem 1rem; padding: 1.2rem .25rem; text-decoration: none; color: var(--ink); }
.areas a:hover { background: var(--white); }
.areas svg { grid-row: span 2; width: 2.2rem; height: 2.2rem; color: var(--teal); }
.areas strong { font: 650 1.2rem var(--heading); color: var(--teal); }
.areas span { color: var(--muted); max-width: 46rem; }

.band { background: var(--white); border-radius: 10px; padding: 2.2rem; margin: 3rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2.5rem; }
.band h3 { color: var(--teal); }
.band p { color: var(--muted); margin: 0; }

/* ---------- En funktion: tekst og billeder ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature__text { order: 2; }
.feature__text { max-width: 34rem; }
.feature__text p, .feature__text li { color: #34434c; }
.tip { border-left: 3px solid var(--green); padding: .2rem 0 .2rem .9rem; color: var(--muted); font-size: .97rem; }

/* ---------- Enhedsrammer (det man husker) ---------- */
.devices { margin: 0; }
.devices__row { display: flex; align-items: flex-end; justify-content: center; gap: 1.2rem; }
.device { background: var(--ink); padding: .55rem; box-shadow: 0 18px 40px -22px rgba(29, 43, 51, .55); flex: none; }
.device--tablet { width: min(100%, 22rem); aspect-ratio: 3 / 4; border-radius: 22px; }
.device--mobil { width: min(42%, 9.5rem); aspect-ratio: 9 / 19.5; border-radius: 26px; padding: .45rem; margin-left: -3.2rem; position: relative; }
.devices--single .device--mobil { margin-left: 0; width: 11rem; }
.device__screen { width: 100%; height: 100%; background: var(--paper); border-radius: 15px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.device--mobil .device__screen { border-radius: 20px; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.device__missing { font-size: .72rem; color: var(--muted); text-align: center; padding: .8rem; word-break: break-all; line-height: 1.35; }
.devices figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: .9rem; }

/* ---------- Bund ---------- */
.foot { border-top: 1px solid var(--line); background: var(--white); }
.foot__inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem; color: var(--muted); font-size: .95rem; }
.foot__note { font-size: .85rem; }

@media (max-width: 860px) {
    .hero, .feature { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding-top: 2.5rem; }
    .feature:nth-of-type(even) .feature__text { order: 0; }
    .band { padding: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .hero .devices { animation: rise .7s ease-out both; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
h3[id], section[id] { scroll-margin-top: 5rem; }
