/* Marsk Camp — ny header. Erstatter Astras header; restyler Astra Pro Page Headers. */
.mch-header {
    --mch-ink: #22201c;
    --mch-ink-2: #5f584e;
    --mch-line: #e6dfd4;
    --mch-sand: #f6f2ec;
    --mch-chip: #f1eadf;
    --mch-accent: #a8692e;
    --mch-accent-dark: #8d5622;
    --mch-top: 0px;
    position: fixed;
    top: var(--mch-top);
    left: 0;
    right: 0;
    z-index: 999;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.3;
    color: var(--mch-ink);
    background: #ffffff;
    border-bottom: 1px solid var(--mch-line);
    transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.admin-bar .mch-header { --mch-top: 32px; }
@media (max-width: 782px) { .admin-bar .mch-header { --mch-top: 46px; } }
.mch-header *, .mch-header *::before, .mch-header *::after { box-sizing: border-box; }
.mch-header a { text-decoration: none; }
.mch-wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 28px; }

/* Øverste linje (kun forsiden) */
.mch-util { font-size: 13px; color: #ece7dd; border-bottom: 1px solid rgba(255,255,255,.18); }
.mch-util .mch-wrap { height: 36px; gap: 20px; }
.mch-util a { color: #ece7dd; }
.mch-util a:hover { color: #ffffff; }

/* Hovedlinjen */
.mch-bar .mch-wrap { height: 76px; }
.mch-logo { display: flex; align-items: center; flex: none; }
.mch-logo-img { display: block; height: 48px; width: auto; }
.mch-logo-light { display: none; }
.mch-wordmark { font-family: "Josefin Sans", sans-serif; font-weight: 300; font-size: 30px; letter-spacing: .14em; color: currentColor; }

.mch-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.mch-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mch-nav-item { position: relative; }
.mch-nav-btn {
    font: inherit; font-size: 15px; font-weight: 500; color: inherit; background: transparent; border: 0;
    height: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; white-space: nowrap;
}
.mch-nav-btn:hover, .mch-nav-btn[aria-expanded="true"], .mch-nav-item.is-current > .mch-nav-btn { background: var(--mch-chip); color: var(--mch-ink); }
.mch-nav-btn:focus-visible, .mch-btn:focus-visible, .mch-lang-btn:focus-visible, .mch-burger:focus-visible, .mch-drop-link:focus-visible { outline: 2px solid var(--mch-accent); outline-offset: 2px; }
.mch-chev { flex: none; transition: transform .15s ease; }
[aria-expanded="true"] > .mch-chev { transform: rotate(180deg); }

/* Undermenuer */
.mch-drop {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    min-width: 260px; background: #ffffff; color: var(--mch-ink); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(20,18,15,.22); padding: 12px; z-index: 5;
}
.mch-drop[hidden] { display: none; }
.mch-drop-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 4px; width: 460px; }
.mch-drop-right { left: auto; right: 0; transform: none; }
.mch-drop-small { min-width: 160px; left: auto; right: 0; transform: none; }
.mch-drop-link { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 10px; color: var(--mch-ink) !important; font-weight: 600; font-size: 15px; }
.mch-drop-link small { font-weight: 400; font-size: 13px; color: var(--mch-ink-2); }
.mch-drop-link.is-sub { font-weight: 400; padding-left: 26px; }
.mch-drop-link:hover, .mch-drop-link[aria-current] { background: var(--mch-sand); }

/* Temaet må ikke klemme ikonerne */
.mch-header svg, .mch-panel svg { flex: none; max-width: none; }
.mch-burger svg { width: 22px; height: 22px; }
.mch-panel-close svg { width: 20px; height: 20px; }
.mch-chev { width: 12px; height: 12px; }

/* Temaets knap-farver (hover/fokus) må ikke slå igennem */
.mch-header button, .mch-panel button { box-shadow: none; text-transform: none; letter-spacing: normal; }
.mch-header .mch-nav-btn:focus:not(:hover):not([aria-expanded="true"]),
.mch-header .mch-lang-btn:focus:not(:hover) { background: transparent; color: inherit; }
.mch-header .mch-lang-btn:hover { background: var(--mch-chip); color: var(--mch-ink); }
.mch-overlay .mch-header:not(.is-solid) .mch-lang-btn:hover { background: rgba(255,255,255,.18); color: #ffffff; }
.mch-header .mch-btn-primary:focus, .mch-header .mch-btn-primary:hover { background: var(--mch-accent-dark); color: #ffffff; }
.mch-header .mch-burger:focus, .mch-header .mch-burger:hover, .mch-panel .mch-panel-close:focus, .mch-panel .mch-panel-close:hover { background: var(--mch-chip); color: var(--mch-ink); }
.mch-panel .mch-acc-btn:focus, .mch-panel .mch-acc-btn:hover { background: none; color: var(--mch-ink); }

/* Knapper */
.mch-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mch-lang, .mch-book { position: relative; }
.mch-lang-btn { font: inherit; font-size: 14px; font-weight: 600; color: inherit; background: transparent; border: 0; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 8px; }
.mch-btn { font: inherit; font-size: 15px; font-weight: 600; height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; border: 0; }
.mch-btn-primary { background: var(--mch-accent); color: #ffffff !important; }
.mch-btn-primary:hover { background: var(--mch-accent-dark); }
.mch-btn-ghost { border: 1.5px solid #cfc5b6; color: var(--mch-ink) !important; background: transparent; }
.mch-btn-ghost:hover { border-color: var(--mch-ink); }
.mch-burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--mch-chip); color: var(--mch-ink); align-items: center; justify-content: center; cursor: pointer; }

/* Over forsidens video: gennemsigtig med mørk overgang, hvid tekst — bliver hvid ved scroll */
.mch-overlay .mch-header:not(.is-solid) {
    background: linear-gradient(180deg, rgba(20,18,15,.6) 0%, rgba(20,18,15,0) 100%);
    border-bottom-color: transparent;
    color: #ffffff;
}
.mch-overlay .mch-header:not(.is-solid) .mch-logo-light { display: block; }
.mch-overlay .mch-header:not(.is-solid) .mch-logo-light ~ .mch-logo-dark { display: none; }
.mch-overlay .mch-header:not(.is-solid) .mch-nav-btn:hover,
.mch-overlay .mch-header:not(.is-solid) .mch-nav-btn[aria-expanded="true"] { background: rgba(255,255,255,.18); color: #ffffff; }
.mch-overlay .mch-header:not(.is-solid) .mch-btn-ghost { border-color: rgba(255,255,255,.7); color: #ffffff !important; }
.mch-overlay .mch-header:not(.is-solid) .mch-btn-ghost:hover { border-color: #ffffff; }
.mch-overlay .mch-header:not(.is-solid) .mch-burger { background: rgba(255,255,255,.18); color: #ffffff; }
.mch-header.is-solid { box-shadow: 0 6px 20px rgba(20,18,15,.06); }
.mch-header.is-solid .mch-util { display: none; }

/* Plads til headeren på almindelige sider */
.mch-spacer { height: 77px; }
.mch-overlay .mch-spacer { height: 0; }

/* Forsidens video: titlen nederst til venstre; lav nok til at indgangene under kan ses uden at scrolle */
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content-wrap { min-height: max(460px, 62vh); position: relative; }
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content-wrap::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none;
    background: linear-gradient(0deg, rgba(20,18,15,.65) 0%, rgba(20,18,15,0) 100%);
}
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content { position: relative; z-index: 1; }
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-rich-text,
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-rich-text * { text-align: left !important; }
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-module-separator { display: none; }

/* Astra Pro Page Headers → billedkort med titlen nederst til venstre */
.mch .ast-merged-advanced-header {
    background-size: 0 0 !important;  /* billedet vises i det indre kort i stedet */
    background-color: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display: block !important;
}
.mch .ast-merged-advanced-header::before, .mch .ast-merged-advanced-header::after { display: none !important; }
.mch .ast-merged-advanced-header .ast-inside-advanced-header-content {
    position: relative;
    width: auto !important;
    max-width: 1280px;
    margin: 24px auto 0;
    min-height: 340px;
    border-radius: 20px;
    overflow: hidden;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 !important;
}
.mch .ast-merged-advanced-header .ast-inside-advanced-header-content::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 65%; pointer-events: none;
    background: linear-gradient(0deg, rgba(20,18,15,.66) 0%, rgba(20,18,15,0) 100%);
}
.mch .ast-merged-advanced-header .ast-advanced-headers-layout { position: relative; z-index: 1; width: 100%; padding: 0 40px 34px !important; }
.mch .ast-merged-advanced-header .ast-container { max-width: none; padding: 0 !important; text-align: left !important; justify-content: flex-start !important; }
.mch .ast-merged-advanced-header .ast-advanced-headers-wrap { text-align: left !important; width: 100%; }
.mch .ast-merged-advanced-header .ast-advanced-headers-title { margin: 0; font-family: "Josefin Sans", sans-serif; font-weight: 400; font-size: 54px; line-height: 1.05; color: #ffffff !important; text-align: left !important; }
.mch .ast-header-breadcrumb { background: transparent !important; border: 0 !important; }
.mch .ast-header-breadcrumb .ast-container, .mch .ast-header-breadcrumb .ast-breadcrumbs-wrapper { max-width: 1280px; margin: 0 auto; padding: 12px 0 0 !important; text-align: left !important; justify-content: flex-start !important; font-size: 14px; }

/* Mobil og smalle skærme */
@media (max-width: 1180px) {
    .mch-nav, .mch-hide-mobile, .mch-lang { display: none; }
    .mch-burger { display: inline-flex; }
    .mch-wrap { padding: 0 16px 0 20px; gap: 10px; justify-content: space-between; }
    .mch-actions { margin-left: auto; }
    .mch-util { display: none; }
}
@media (max-width: 1320px) {
    .mch .ast-merged-advanced-header .ast-inside-advanced-header-content { margin: 16px 16px 0; }
    .mch .ast-header-breadcrumb .ast-container, .mch .ast-header-breadcrumb .ast-breadcrumbs-wrapper { padding: 12px 16px 0 !important; }
}
@media (max-width: 640px) {
    .mch-bar .mch-wrap { height: 64px; }
    .mch-spacer { height: 65px; }
    .mch-logo-img { height: 38px; }
    .mch-btn { height: 44px; padding: 0 16px; }
    .mch-book .mch-chev { display: none; }
    .mch .ast-merged-advanced-header .ast-inside-advanced-header-content { min-height: 220px; border-radius: 16px; margin: 12px 12px 0; }
    .mch .ast-merged-advanced-header .ast-advanced-headers-layout { padding: 0 20px 22px !important; }
    .mch .ast-merged-advanced-header .ast-advanced-headers-title { font-size: 34px; }
    .mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content-wrap { min-height: 56vh; }
}

/* Fuldskærmsmenu */
.mch-panel { position: fixed; inset: 0; top: var(--mch-top); background: #ffffff; color: var(--mch-ink); z-index: 1000; display: flex; flex-direction: column; }
.mch-panel[hidden] { display: none; }
.mch-panel-head { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; border-bottom: 1px solid var(--mch-line); }
.mch-panel-head .mch-logo-light { display: none !important; }
.mch-panel-head .mch-logo-dark { display: block !important; height: 38px; }
.mch-panel-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--mch-chip); color: var(--mch-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mch-panel-nav { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.mch-acc { border-bottom: 1px solid var(--mch-line); }
.mch-acc-btn { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; padding: 0; font-family: "Josefin Sans", sans-serif; font-size: 22px; color: var(--mch-ink) !important; cursor: pointer; text-align: left; }
.mch-acc-list { display: flex; flex-direction: column; padding: 0 0 12px; }
.mch-acc-list[hidden] { display: none; }
.mch-acc-list a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 16px; color: #3a352e !important; }
.mch-acc-list a.is-sub { padding-left: 26px; font-size: 15px; }
.mch-acc-list a:hover { background: var(--mch-sand); }
.mch-panel-langs { display: flex; gap: 8px; padding: 18px 0 6px; flex-wrap: wrap; }
.mch-panel-langs a { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #d8cfc1; font-size: 14px; color: var(--mch-ink) !important; }
.mch-panel-langs a[aria-current] { background: var(--mch-ink); border-color: var(--mch-ink); color: #ffffff !important; font-weight: 600; }
.mch-panel-contact { margin: 12px 0 0; font-size: 14px; color: var(--mch-ink-2); line-height: 1.6; }
.mch-panel-contact a { color: var(--mch-ink) !important; }
.mch-panel-cta { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 20px 20px; border-top: 1px solid var(--mch-line); }
.mch-panel-cta .mch-btn { justify-content: center; height: 50px; }
.mch-btn-ghost-dark { border: 1.5px solid #cfc5b6; color: var(--mch-ink) !important; background: #ffffff; }
body.mch-locked { overflow: hidden; }

/* Astras gamle header-rester skjules, hvis et plugin alligevel tegner dem */
.mch #ast-mobile-popup-wrapper, .mch .ast-mobile-popup-drawer { display: none !important; }

/* Forsidens indgange: kort der overlapper videoens nederste kant (erstatter fliserne under videoen) */
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content-wrap { padding-bottom: 130px !important; }
.mch-entries + .fl-row:has(.fl-module-pp-content-grid) { display: none !important; }
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content { max-width: 1360px !important; padding: 0 40px; box-sizing: border-box; }
.mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-module-content { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 1180px) { .mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content { padding: 0 20px; } }
.mch-entries { position: relative; z-index: 5; max-width: 1360px; margin: -96px auto 0; padding: 0 40px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.mch-entries-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mch-entry { display: flex; flex-direction: column; background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(20,18,15,.16); text-decoration: none !important; color: #22201c !important; transition: transform .15s ease, box-shadow .15s ease; }
.mch-entry:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,18,15,.22); }
.mch-entry:focus-visible { outline: 3px solid #a8692e; outline-offset: 3px; }
.mch-entry-img { display: block; height: 130px; background: #b8a88e center / cover no-repeat; }
.mch-entry-text { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.mch-entry-title { font-family: "Josefin Sans", sans-serif; font-size: 21px; line-height: 1.2; }
.mch-entry-act { font-size: 14px; font-weight: 600; color: #8d5622; }
@media (max-width: 1180px) {
    .mch-entries { padding: 0 20px; }
    .mch-entries-grid { gap: 10px; }
    .mch-entry-img { height: 100px; }
    .mch-entry-title { font-size: 18px; }
}
@media (max-width: 860px) {
    .mch-overlay .fl-builder-content > .fl-row-bg-video:first-child .fl-row-content-wrap { padding-bottom: 56px !important; }
    .mch-entries { margin: -28px 12px 0; padding: 0; }
    .mch-entries-grid { display: flex; flex-direction: column; gap: 0; background: #ffffff; border-radius: 20px; box-shadow: 0 12px 30px rgba(20,18,15,.18); padding: 6px 0; }
    .mch-entry { flex-direction: row; align-items: center; gap: 14px; min-height: 64px; padding: 0 16px; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee7dc; }
    .mch-entry:last-child { border-bottom: 0; }
    .mch-entry:hover { transform: none; box-shadow: none; background: #faf7f2; }
    .mch-entry-img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
    .mch-entry-text { flex: 1; padding: 10px 0; gap: 2px; }
    .mch-entry-title { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 16px; }
    .mch-entry-act { font-weight: 400; font-size: 13px; color: #5f584e; }
}
