:root {
    --green-950: #0b3a29;
    --green-900: #104d37;
    --green-800: #176447;
    --green-700: #1f7653;
    --green-100: #e7efe9;
    --green-50: #f2f6f3;
    --sand: #f7f4ed;
    --cream: #fcfbf7;
    --text: #15231c;
    --muted: #5e6a63;
    --border: rgba(18, 61, 42, .12);
    --danger: #b63d26;
    --shadow: 0 14px 38px rgba(22, 45, 34, .10);
    --radius: 20px;
    --max-width: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
    line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 251, 247, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.header-inner {
    width: min(calc(100% - 40px), var(--max-width));
    min-height: 88px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 42px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { color: var(--green-900); display: grid; place-items: center; }
.brand-mark svg { width: 38px; height: 38px; stroke-width: 1.5; }
.brand strong { display: block; font-family: "Libre Baskerville", serif; color: var(--green-950); font-size: clamp(1.25rem, 1.7vw, 1.75rem); line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: #31463a; font-size: .82rem; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: 30px; font-weight: 600; }
.main-nav a { position: relative; padding: 31px 0 28px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 2px; background: var(--green-700); transition: .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.emergency-button { display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 12px; color: white; background: var(--green-950); }
.emergency-button svg { width: 24px; height: 24px; }
.emergency-button strong, .emergency-button small { display: block; }
.emergency-button strong { font-size: .84rem; }
.emergency-button small { margin-top: 2px; font-weight: 700; }
.mobile-menu-button { display: none; border: 0; background: transparent; color: var(--green-950); padding: 8px; }
.mobile-menu-button .menu-close { display: none; }

.hero {
    position: relative;
    width: min(calc(100% - 64px), 1536px);
    min-height: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(90deg, rgba(7, 41, 28, .94) 0%, rgba(8, 45, 29, .72) 38%, rgba(8, 45, 29, .10) 72%),
        url('../img/hero-ladegaardsparken.jpg') center/cover no-repeat,
        linear-gradient(135deg, #315d46, #8fb4a0);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 38, 25, .15), transparent 55%); }
.hero-content { position: relative; z-index: 1; width: min(700px, 62%); padding: 64px 72px 56px; color: white; }
.eyebrow { margin: 0 0 12px; color: var(--green-700); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .76rem; }
.hero .eyebrow { color: #cbe5d3; }
h1, h2 { font-family: "Libre Baskerville", serif; }
h1 { margin: 0; font-size: clamp(3rem, 5vw, 5.8rem); line-height: .98; letter-spacing: -.045em; }
.hero-intro { max-width: 580px; margin: 24px 0 0; font-size: clamp(1rem, 1.45vw, 1.35rem); color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border-radius: 11px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(10, 44, 29, .18); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--green-700); }
.button-light { color: var(--green-950); background: white; }
.hero-meta { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero-meta > div { display: flex; align-items: center; gap: 14px; }
.hero-meta svg { flex: 0 0 auto; width: 30px; height: 30px; }
.hero-meta strong, .hero-meta small { display: block; }
.hero-meta strong { font-size: .86rem; }
.hero-meta small { margin-top: 3px; color: rgba(255,255,255,.82); }

.quick-links {
    position: relative;
    z-index: 5;
    width: min(calc(100% - 120px), 1380px);
    margin: -52px auto 28px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.quick-card { position: relative; min-height: 190px; padding: 24px 22px 22px; text-align: center; border-right: 1px solid var(--border); transition: background .2s ease, transform .2s ease; }
.quick-card:last-child { border-right: 0; }
.quick-card:hover { background: var(--green-50); transform: translateY(-3px); }
.quick-icon { width: 62px; height: 62px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--green-100); }
.quick-icon svg { width: 32px; height: 32px; }
.quick-card h2 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--green-950); }
.quick-card p { margin: 8px auto 0; max-width: 180px; color: var(--muted); font-size: .84rem; }
.card-arrow { position: absolute; right: 16px; bottom: 13px; color: var(--green-900); }
.card-arrow svg { width: 18px; height: 18px; }

.content-grid {
    width: min(calc(100% - 120px), 1380px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.08fr 1fr 1.1fr;
    gap: 24px;
}
.panel { min-width: 0; background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 22px rgba(22,45,34,.06); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font-family: "DM Sans", sans-serif; color: var(--green-950); font-size: 1.15rem; }
.panel-heading a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; }
.panel-heading a svg { width: 16px; height: 16px; }
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.news-item:first-child { border-top: 0; padding-top: 0; }
.news-item img { width: 112px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--green-100); }
.news-item strong, .news-item small { display: block; }
.news-item strong { color: var(--green-950); font-size: .88rem; }
.news-item small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.news-item p { margin: 6px 0 0; color: #35453c; font-size: .78rem; line-height: 1.45; }
.event-item { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.event-item:first-child { border-top: 0; padding-top: 0; }
.event-date { display: grid; place-items: center; min-height: 54px; border-radius: 10px; color: var(--green-950); background: var(--green-100); }
.event-date strong { font-size: 1.2rem; line-height: 1; }
.event-date small { font-size: .58rem; font-weight: 800; }
.event-info strong, .event-info small { display: block; }
.event-info strong { font-size: .86rem; }
.event-info small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.event-place { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .74rem; }
.event-place svg { width: 15px; height: 15px; }
.full-width { width: 100%; margin-top: 18px; }
.contact-panel { background: linear-gradient(145deg, #eef3ee, #e1e9e3); }
.contact-details { display: grid; gap: 20px; }
.contact-details > div { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.contact-details svg { color: var(--green-800); }
.contact-details strong, .contact-details small { display: block; }
.contact-details strong { font-size: .88rem; }
.contact-details small { margin-top: 3px; color: #48564e; font-size: .76rem; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.contact-actions a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 11px; border-radius: 10px; background: white; box-shadow: 0 5px 13px rgba(18,61,42,.08); font-size: .75rem; font-weight: 800; }
.contact-actions svg { width: 17px; height: 17px; }
.contact-actions .danger { color: white; background: var(--danger); }

.community-section, .documents-section {
    width: min(calc(100% - 120px), 1380px);
    margin: 72px auto 0;
}
.community-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; }
.community-section h2, .documents-section h2 { margin: 0 0 16px; color: var(--green-950); font-size: clamp(2rem, 3vw, 3.2rem); }
.community-section p, .documents-section p { max-width: 700px; color: var(--muted); }
.community-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.community-cards a { min-height: 180px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: var(--radius); color: white; background: linear-gradient(145deg, var(--green-800), var(--green-950)); box-shadow: var(--shadow); }
.community-cards a:nth-child(2) { background: linear-gradient(145deg, #5e7d68, #234b37); }
.community-cards a:nth-child(3) { background: linear-gradient(145deg, #b49f78, #6d5d43); }
.community-cards strong { font-family: "Libre Baskerville", serif; font-size: 1.25rem; }
.community-cards span { margin-top: 6px; font-size: .8rem; opacity: .88; }
.documents-section { margin-bottom: 72px; padding: 56px; border-radius: 28px; background: var(--sand); }
.documents-section .button { margin-top: 14px; }

.site-footer { min-height: 120px; padding: 28px max(32px, calc((100% - 1380px)/2)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 30px; color: white; background: var(--green-950); }
.site-footer strong, .site-footer span { display: block; }
.site-footer span { color: rgba(255,255,255,.7); font-size: .78rem; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.72); font-size: .78rem; }

@media (max-width: 1200px) {
    .header-inner { grid-template-columns: auto auto 1fr; gap: 22px; }
    .main-nav { position: fixed; inset: 88px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border-radius: 16px; background: white; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 14px 12px; }
    .main-nav a::after { display: none; }
    .mobile-menu-button { display: block; grid-column: 3; justify-self: end; }
    .mobile-menu-button.open .menu-open { display: none; }
    .mobile-menu-button.open .menu-close { display: inline; }
    .emergency-button { grid-column: 2; grid-row: 1; }
    .quick-links { grid-template-columns: repeat(3, 1fr); }
    .quick-card:nth-child(3) { border-right: 0; }
    .quick-card:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
    .content-grid { grid-template-columns: 1fr 1fr; }
    .contact-panel { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .header-inner { width: min(calc(100% - 24px), var(--max-width)); min-height: 76px; grid-template-columns: 1fr auto; }
    .brand small { display: none; }
    .emergency-button { display: none; }
    .mobile-menu-button { grid-column: 2; }
    .main-nav { inset: 76px 12px auto; }
    .hero { width: 100%; min-height: 620px; border-radius: 0; background-position: 58% center; }
    .hero-content { width: 100%; padding: 64px 24px 118px; }
    h1 { font-size: clamp(2.9rem, 14vw, 4.6rem); }
    .hero-meta { grid-template-columns: 1fr; gap: 13px; }
    .quick-links { width: calc(100% - 28px); margin-top: -78px; grid-template-columns: 1fr 1fr; }
    .quick-card { min-height: 174px; }
    .quick-card:nth-child(odd) { border-right: 1px solid var(--border); }
    .quick-card:nth-child(even) { border-right: 0; }
    .quick-card:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
    .content-grid, .community-section, .documents-section { width: calc(100% - 28px); }
    .content-grid { grid-template-columns: 1fr; }
    .contact-panel { grid-column: auto; }
    .community-section { grid-template-columns: 1fr; gap: 30px; }
    .community-cards { grid-template-columns: 1fr; }
    .community-cards a { min-height: 140px; }
    .documents-section { padding: 34px 26px; }
    .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 30px 24px; }
}

@media (max-width: 520px) {
    .brand strong { font-size: 1.15rem; }
    .hero-actions { flex-direction: column; }
    .button { width: 100%; }
    .quick-links { grid-template-columns: 1fr; }
    .quick-card, .quick-card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--border); }
    .quick-card:last-child { border-bottom: 0; }
    .news-item { grid-template-columns: 92px 1fr; }
    .news-item img { width: 92px; height: 76px; }
    .event-item { grid-template-columns: 50px 1fr; }
    .event-place { grid-column: 2; }
    .contact-actions { grid-template-columns: 1fr; }
}
