/*
 * module_page.css - fælles styling for de offentlige modulsider (/moduler/<slug>).
 *
 * Filen er bevidst generisk: alle klasser er modul-uafhængige (.mod-*), så de
 * kommende modulsider kan genbruge den uændret. Designlinjen følger
 * vanogis_landing.css og brugerguide.html (grøn/fersken/creme, Jost).
 */

:root {
    --green: #1d524f;
    --green-deep: #143b39;
    --peach: #E8A791;
    --ink: #1f2328;
    --muted: #5b6770;
    --line: #e3e0d8;
    --cream: #F4EFEA;
    --paper: #ffffff;
    --soft: #fafaf7;
    --top-h: 62px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Jost', sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
}

.mod-wrap {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

/* ---------- Topbar ---------- */
.mod-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.mod-topbar .mod-brand {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .3px;
    text-decoration: none;
    color: #fff;
}

.mod-topbar .mod-brand span { color: var(--peach); }

.mod-topbar .mod-spacer { flex: 1; }

.mod-topbar .mod-navlink,
.mod-topbar .mod-btn-login,
.mod-topbar .mod-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .92rem;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s;
}

.mod-topbar .mod-navlink,
.mod-topbar .mod-btn-login {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.mod-topbar .mod-navlink:hover,
.mod-topbar .mod-btn-login:hover { background: rgba(255, 255, 255, .22); }

.mod-topbar .mod-btn-register {
    background: var(--peach);
    color: var(--green-deep);
    font-weight: 600;
}

.mod-topbar .mod-btn-register:hover {
    background: #f0b7a3;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.mod-topbar .material-symbols-outlined { font-size: 1.15rem; }

/* ---------- Fælles knapper ---------- */
.mod-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background .15s, box-shadow .15s, transform .15s, border-color .15s;
}

.mod-btn .material-symbols-outlined { font-size: 1.2rem; }

.mod-btn-primary {
    background: var(--peach);
    color: var(--green-deep);
}

.mod-btn-primary:hover {
    background: #f0b7a3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    transform: translateY(-1px);
}

.mod-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
}

.mod-btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .7);
}

/* ---------- Eyebrow + sektionshoveder ---------- */
.mod-eyebrow {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 14px;
}

.mod-beta {
    display: inline-block;
    margin: 0 0 14px 10px;
    vertical-align: middle;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(244, 239, 234, .12);
    color: var(--cream);
    border: 1px solid rgba(244, 239, 234, .28);
}

/* ---------- Hero ---------- */
.mod-hero {
    background: var(--green-deep);
    color: var(--cream);
    padding: 68px 0 76px;
}

.mod-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}

.mod-hero h1 {
    margin: 0 0 .5em;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.14;
    color: #fff;
}

.mod-hero .mod-lead {
    margin: 0 0 30px;
    font-size: 1.08rem;
    color: rgba(244, 239, 234, .86);
}

.mod-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mod-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f2c2b;
    border: 1px solid rgba(244, 239, 234, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

.mod-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: rgba(244, 239, 234, .08);
    border-bottom: 1px solid rgba(244, 239, 234, .12);
}

.mod-shot-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(244, 239, 234, .28);
}

.mod-shot-bar em {
    margin-left: 8px;
    font-style: normal;
    font-size: .82rem;
    color: rgba(244, 239, 234, .65);
}

/* Telefonramme til moduler med et mobil-screenshot (Apollo). */
.mod-phone {
    margin: 0 auto;
    width: min(290px, 68vw);
    border-radius: 42px;
    padding: 12px;
    background: var(--green);
    border: 1px solid rgba(244, 239, 234, .18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    position: relative;
}

.mod-phone::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 22px;
    border-radius: 12px;
    background: var(--green);
    z-index: 3;
}

.mod-phone-screen {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
    background: linear-gradient(160deg, #1d524f, #0e2b29);
}

.mod-phone-screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Sektioner ---------- */
.mod-section { padding: 68px 0; }

.mod-section h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.2;
    margin: 0 0 .6em;
}

.mod-section h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--green);
    margin: 1.9em 0 .4em;
}

.mod-section p { margin: .8em 0; }

.mod-section strong { font-weight: 600; color: var(--green-deep); }

/* ---------- Roller ---------- */
.mod-roles { background: var(--soft); }

.mod-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.mod-role-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 1px 3px rgba(20, 40, 38, .05);
}

.mod-role-card .material-symbols-outlined {
    font-size: 30px;
    color: var(--peach);
    margin-bottom: 12px;
}

.mod-role-card h3 {
    margin: 0 0 .5em;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-deep);
    line-height: 1.3;
}

.mod-role-card p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
}

/* ---------- Dybdeafsnit ---------- */
.mod-deep { background: var(--cream); }

.mod-deep .mod-prose { max-width: 78ch; }

.mod-deep .mod-prose > h3:first-of-type { margin-top: 1.2em; }

/* Nogle moduler har flere sidestillede dybdeafsnit (h2) i samme sektion. */
.mod-deep .mod-prose > h2 + h2 { margin-top: 0; }

.mod-deep .mod-prose > * + h2 { margin-top: 1.8em; }

/* ---------- FAQ ---------- */
.mod-faq { background: var(--paper); }

.mod-faq-list { margin-top: 28px; max-width: 82ch; }

.mod-faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    margin-bottom: 12px;
    overflow: hidden;
}

.mod-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 17px 52px 17px 22px;
    font-weight: 600;
    color: var(--green-deep);
    position: relative;
    transition: background .12s;
}

.mod-faq summary::-webkit-details-marker { display: none; }

.mod-faq summary:hover { background: #f2efe8; }

.mod-faq summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--peach);
    line-height: 1;
}

.mod-faq details[open] summary::after { content: '\2013'; }

.mod-faq details p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
}

/* ---------- Afsluttende CTA ---------- */
.mod-cta {
    background: var(--green-deep);
    color: var(--cream);
    padding: 62px 0;
    text-align: center;
}

.mod-cta h2 {
    margin: 0 0 .5em;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600;
    color: #fff;
}

.mod-cta p {
    margin: 0 auto 28px;
    max-width: 60ch;
    color: rgba(244, 239, 234, .82);
}

.mod-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.mod-cta .mod-guidelink {
    display: inline-block;
    margin-top: 24px;
    color: var(--peach);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: .95rem;
}

.mod-cta .mod-guidelink:hover { color: #f0b7a3; }

/* ---------- Footer ---------- */
.mod-footer {
    background: var(--green-deep);
    color: rgba(244, 239, 234, .7);
    padding: 44px 0 36px;
    font-size: .92rem;
    border-top: 1px solid rgba(244, 239, 234, .12);
}

.mod-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 56px;
    align-items: flex-start;
    justify-content: space-between;
}

.mod-footer .mod-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mod-footer .mod-brand-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(244, 239, 234, .1);
    display: grid;
    place-items: center;
    flex: none;
}

.mod-footer .mod-brand-circle img { width: 26px; height: 26px; object-fit: contain; }

.mod-footer .mod-wordmark {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--cream);
}

.mod-footer .mod-wordmark span { color: var(--peach); font-weight: 500; }

.mod-footer b { color: var(--cream); font-weight: 600; }

.mod-footer a { color: rgba(244, 239, 234, .7); text-decoration: none; }

.mod-footer a:hover { color: var(--peach); }

.mod-footer-col { display: grid; gap: 4px; }

.mod-footer .mod-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(244, 239, 234, .12);
    font-size: .85rem;
    color: rgba(244, 239, 234, .45);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Responsivt ---------- */
@media (max-width: 900px) {
    .mod-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .mod-role-grid { grid-template-columns: 1fr; }
    .mod-hero { padding: 48px 0 56px; }
    .mod-section { padding: 52px 0; }
}

@media (max-width: 620px) {
    .mod-topbar { padding: 12px 16px; gap: 8px; }
    .mod-topbar .mod-navlink .mod-label,
    .mod-topbar .mod-btn-register .mod-label,
    .mod-topbar .mod-btn-login .mod-label { display: none; }
    .mod-topbar .mod-navlink,
    .mod-topbar .mod-btn-login,
    .mod-topbar .mod-btn-register { padding: 7px 10px; }
    .mod-hero-cta .mod-btn,
    .mod-cta-btns .mod-btn { width: 100%; justify-content: center; }
    .mod-footer-grid { flex-direction: column; gap: 22px; }
}
