/* ==========================================================================
   BVV Design – stramt layout til borkopvandmolle.eu
   Palette og typografi fra spor 1 (møllebrun, å-vand, eng-grøn, hø-hvid, mursten;
   Playfair Display + Source Sans 3) – UDEN akvarel-teksturer. Kun rigtige fotos.
   Alt er scoped under body.bvv-design, så pluginet kan slås fra uden spor.
   ========================================================================== */

/* ---------- Selvhostede fonte (OFL, ingen Google-CDN) ---------- */
@font-face {
    font-family: 'BVV Playfair Display';
    src: url('fonts/playfair-display-latin-wght.woff2') format('woff2');
    font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'BVV Source Sans 3';
    src: url('fonts/source-sans-3-latin-wght.woff2') format('woff2');
    font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'BVV Source Sans 3';
    src: url('fonts/source-sans-3-latin-wght-italic.woff2') format('woff2');
    font-weight: 200 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
body.bvv-design {
    --bvv-mollebrun: #5D4A38;
    --bvv-aa-vand: #4A6B6F;
    --bvv-aa-vand-mork: #3A5659;
    --bvv-eng-gron: #7A8B6F;
    --bvv-eng-lys: #EEF1E9;
    --bvv-hoe-hvid: #F5F1E8;
    --bvv-mursten: #A65D43;
    --bvv-mursten-mork: #8A4C36;
    --bvv-tekst: #3A322A;
    --bvv-kort: #FFFFFF;
    --bvv-linje: rgba(93, 74, 56, 0.12);
    --bvv-skygge: 0 4px 18px rgba(93, 74, 56, 0.12);
    --bvv-skygge-hover: 0 10px 30px rgba(93, 74, 56, 0.18);
    --bvv-radius: 14px;
    --bvv-serif: 'BVV Playfair Display', 'Playfair Display', Georgia, 'Times New Roman', serif;
    --bvv-sans: 'BVV Source Sans 3', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bvv-container: 1200px;
    --bvv-section-y: clamp(3rem, 6vw, 4.5rem);
    --bvv-gutter: 1.5rem;

    /* WordPress-layout: bredt indhold = 1200px (brødtekst forbliver temaets 700px) */
    --wp--style--global--wide-size: 1200px;

    /* Fjern temaets beige→karamel-gradient: ensfarvet hø-hvid flade */
    background: var(--bvv-hoe-hvid) !important;
    background-image: none !important;
    color: var(--bvv-tekst);
    font-family: var(--bvv-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.bvv-design .wp-site-blocks { background: transparent; }

/* ---------- Typografi ---------- */
body.bvv-design :is(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-post-title, .hostinger-ai-page-title) {
    font-family: var(--bvv-serif);
    color: var(--bvv-mollebrun);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
}
body.bvv-design :is(p, li, td, th, label, input, select, textarea, button, .wp-block-navigation, .wp-block-button__link) {
    font-family: var(--bvv-sans);
}
body.bvv-design main :is(p, li) { font-size: 1.05rem; }
body.bvv-design main h1:not(.bvv-hero__title),
body.bvv-design .hostinger-ai-page-title { font-size: clamp(2rem, 4vw, 2.8rem); }
body.bvv-design main h2.wp-block-heading { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2.2rem; }
body.bvv-design main a:not(.wp-element-button):not(.wp-block-button__link):not(.bvv-btn):not(.bvv-card__link) {
    color: var(--bvv-aa-vand);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}
body.bvv-design main a:not(.wp-element-button):not(.wp-block-button__link):not(.bvv-btn):not(.bvv-card__link):hover { color: var(--bvv-mursten); }
body.bvv-design :focus-visible { outline: 3px solid var(--bvv-aa-vand); outline-offset: 2px; }

/* ---------- Header (behold logo + menu, hø-hvid flade) ---------- */
body.bvv-design .hostinger-ai-menu {
    background-color: rgba(245, 241, 232, 0.97) !important;
    border-bottom: 1px solid var(--bvv-linje);
}
body.bvv-design .hostinger-ai-menu .wp-block-navigation-item__content { color: var(--bvv-mollebrun); }
body.bvv-design .hostinger-ai-menu .current-menu-item > .wp-block-navigation-item__content { color: var(--bvv-mursten); }
body.bvv-design .bvv-logo-text { font-family: var(--bvv-serif); color: var(--bvv-mollebrun); font-weight: 600; }
body.bvv-design .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--bvv-hoe-hvid) !important; }

/* ---------- Footer: behold den mørke footer ---------- */
body.bvv-design footer.site-footer :is(h2, h3, h4) { color: #fff; }
body.bvv-design footer.site-footer a:hover { text-decoration: underline; }

/* ---------- Knapper (ensfarvede – ingen teksturer) ---------- */
body.bvv-design :is(.wp-block-button__link, .wp-element-button, .bvv-btn) {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1.4rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font-family: var(--bvv-sans);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    background-color: var(--bvv-mursten);
    color: var(--bvv-hoe-hvid);
    box-shadow: 0 3px 0 0 var(--bvv-mursten-mork), 0 6px 14px rgba(93, 74, 56, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
body.bvv-design :is(.wp-block-button__link, .wp-element-button, .bvv-btn):hover {
    background-color: var(--bvv-mursten-mork); color: #fff; transform: translateY(-1px);
}
body.bvv-design :is(.wp-block-button__link, .wp-element-button, .bvv-btn):active { transform: translateY(1px); box-shadow: 0 1px 0 0 var(--bvv-mursten-mork); }
body.bvv-design .bvv-btn--secondary,
body.bvv-design .is-style-outline .wp-block-button__link {
    background-color: var(--bvv-hoe-hvid); color: var(--bvv-mollebrun);
    border-color: rgba(74, 107, 111, .55);
    box-shadow: 0 3px 0 0 rgba(74, 107, 111, .3), 0 5px 12px rgba(93, 74, 56, .12);
}
body.bvv-design .bvv-btn--secondary:hover { background-color: #fff; color: var(--bvv-aa-vand); border-color: var(--bvv-aa-vand); }
body.bvv-design .bvv-btn--light { background-color: rgba(245,241,232,.95); color: var(--bvv-mollebrun); box-shadow: 0 3px 0 0 rgba(93,74,56,.2), 0 6px 14px rgba(0,0,0,.18); }
body.bvv-design .bvv-btn--light:hover { background-color: #fff; color: var(--bvv-mursten); }
body.bvv-design .wp-block-file__button { padding: .45rem 1rem; font-size: .9rem; }

/* ---------- Sektionsrytme + 1200px-container ---------- */
body.bvv-design .bvv-section {
    padding: var(--bvv-section-y) var(--bvv-gutter) !important;
    margin-top: 0 !important; margin-bottom: 0 !important;
}
body.bvv-design .bvv-section > * { max-width: var(--bvv-container) !important; margin-left: auto !important; margin-right: auto !important; }
body.bvv-design .bvv-section--alt { background: var(--bvv-eng-lys); }
body.bvv-design .bvv-section--white { background: #fff; }
/* sektioner skifter baggrund – ingen padding-kollaps */
body.bvv-design .bvv-section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important;
    text-align: center; margin: 0 auto .6rem !important;
}
body.bvv-design .bvv-section-subtitle {
    text-align: center; max-width: 640px !important; margin: 0 auto 2.6rem !important;
    font-size: 1.08rem; opacity: .88;
}
body.bvv-design .bvv-section-footer { text-align: center; margin-top: 2rem !important; }
body.bvv-design .bvv-center { text-align: center; }
body.bvv-design .bvv-note { text-align: center; font-size: .98rem; opacity: .88; margin-top: 1.8rem !important; }

/* Forsiden: front-page-skabelonen har ingen luft mellem sektioner og header/footer */
body.bvv-design.home main > .wp-block-post-content,
body.bvv-design.page main .wp-block-post-content:has(> .bvv-section) { padding-top: 0; padding-bottom: 0; }
body.bvv-design main .wp-block-post-content > .bvv-section:last-child { margin-bottom: 0 !important; }
body.bvv-design .wp-block-post-content > .alignfull.bvv-hero-wrap { margin-top: 0 !important; }

/* ---------- Hero med eget foto ---------- */
body.bvv-design .bvv-hero-wrap { padding: 0 !important; margin-top: 0 !important; }
body.bvv-design .bvv-hero {
    position: relative; overflow: hidden;
    min-height: clamp(460px, 78vh, 760px);
    display: flex; align-items: center; justify-content: center;
    text-align: center; isolation: isolate;
}
body.bvv-design .bvv-hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 55%; z-index: -2; max-width: none;
}
body.bvv-design .bvv-hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(40, 32, 24, .25) 0%, rgba(40, 32, 24, .45) 55%, rgba(40, 32, 24, .62) 100%);
}
body.bvv-design .bvv-hero__content { max-width: 820px; padding: 3rem 1.5rem; color: #fff; }
body.bvv-design .bvv-hero__label {
    font-size: .85rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--bvv-hoe-hvid); opacity: .95; margin: 0 0 .8rem;
}
body.bvv-design .bvv-hero__title {
    color: #fff !important; font-size: clamp(2.4rem, 6vw, 4.4rem) !important; line-height: 1.08 !important;
    margin: 0 0 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
body.bvv-design .bvv-hero__content p { color: rgba(255,255,255,.95); font-size: clamp(1.05rem, 2vw, 1.25rem) !important; max-width: 640px; margin: 0 auto 1.8rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
body.bvv-design .bvv-hero .bvv-actions { justify-content: center; }

/* Underside-hero (UX-udkast): titel nederst til venstre, fast højde ca. 460px */
body.bvv-design .bvv-hero--page {
    min-height: 460px; height: 460px; max-height: 70vh;
    align-items: flex-end; justify-content: flex-start; text-align: left;
}
body.bvv-design .bvv-hero--page .bvv-hero__content {
    max-width: none; width: 100%; padding: 0 0 2.6rem 8vw; margin: 0;
}
body.bvv-design .bvv-hero--page .bvv-hero__title {
    margin: 0; font-weight: 500; font-size: clamp(2.6rem, 5.5vw, 4.2rem) !important;
}
@media (max-width: 620px) {
    body.bvv-design .bvv-hero--page { height: 320px; min-height: 320px; }
    body.bvv-design .bvv-hero--page .bvv-hero__content { padding: 0 0 1.6rem 1.25rem; }
}

/* Temaets sidetitel over heroen skjules. Titlen i heroen bliver. */
body.bvv-design:has(.bvv-hero--page) main > .wp-block-group:has(> .wp-block-post-title) {
    display: none;
}
body.bvv-design main .wp-block-post-content:has(> .bvv-hero-wrap) {
    padding-top: 0;
}


/* ---------- Knaprække / CTA ---------- */
body.bvv-design .bvv-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; align-items: center; margin: 0; }

/* ---------- Kort-grid: 4 pr. række (2 på tablet, 1 på mobil) ---------- */
body.bvv-design .bvv-cards {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: var(--bvv-container); margin: 0 auto;
}
body.bvv-design .bvv-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.bvv-design .bvv-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
body.bvv-design .bvv-cards--1 { grid-template-columns: minmax(0, 1fr); max-width: 400px; }
@media (max-width: 1080px) {
    body.bvv-design .bvv-cards,
    body.bvv-design .bvv-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    body.bvv-design .bvv-cards,
    body.bvv-design .bvv-cards--3,
    body.bvv-design .bvv-cards--2 { grid-template-columns: minmax(0, 1fr); }
}
body.bvv-design .bvv-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--bvv-kort); border-radius: var(--bvv-radius); overflow: hidden;
    border: 1px solid var(--bvv-linje); box-shadow: var(--bvv-skygge);
    transition: transform .25s ease, box-shadow .25s ease;
}
body.bvv-design .bvv-card:hover, body.bvv-design .bvv-card:focus-within { transform: translateY(-4px); box-shadow: var(--bvv-skygge-hover); }
body.bvv-design .bvv-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bvv-eng-lys); }
body.bvv-design .bvv-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
body.bvv-design .bvv-card:hover .bvv-card__img { transform: scale(1.04); }
body.bvv-design .bvv-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
body.bvv-design .bvv-card--text .bvv-card__body { padding: 1.7rem 1.5rem; text-align: center; align-items: center; }
body.bvv-design .bvv-card__label {
    margin: 0; font-size: .74rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bvv-aa-vand);
}
body.bvv-design .bvv-card__title { margin: 0 !important; font-size: 1.22rem !important; line-height: 1.25; }
body.bvv-design .bvv-card__link {
    all: unset; cursor: pointer; color: var(--bvv-mollebrun); font: inherit;
}
body.bvv-design a.bvv-card__link { text-decoration: none; }
body.bvv-design .bvv-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--bvv-radius); }
body.bvv-design .bvv-card__link:focus-visible::after { outline: 3px solid var(--bvv-aa-vand); outline-offset: -3px; }
body.bvv-design .bvv-card__link:focus-visible { outline: none; }
body.bvv-design .bvv-card__text { margin: 0; font-size: .95rem !important; line-height: 1.55; opacity: .88; flex: 1; }
body.bvv-design .bvv-card__more { margin-top: .7rem; font-size: .9rem; font-weight: 600; color: var(--bvv-mursten); }

/* ---------- Åbningstidskort (3) ---------- */
body.bvv-design .bvv-hours-grid {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
    margin-top: 1.5rem; margin-bottom: 1.5rem;
}
@media (max-width: 900px) { body.bvv-design .bvv-hours-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto !important; margin-right: auto !important; } }
body.bvv-design .bvv-hours-grid > * { margin: 0 !important; }
body.bvv-design .bvv-hours-card {
    background: var(--bvv-kort); border-radius: var(--bvv-radius); overflow: hidden;
    border: 1px solid var(--bvv-linje); box-shadow: var(--bvv-skygge);
    padding: 0 0 1.2rem !important;
}
body.bvv-design .bvv-hours-card > * { margin: .5rem 1.4rem 0 !important; }
body.bvv-design .bvv-hours-card > h3:first-child,
body.bvv-design .bvv-hours-card > h2:first-child {
    margin: 0 0 1rem !important; padding: 1.05rem 1.4rem;
    color: var(--bvv-hoe-hvid) !important; background: var(--bvv-mollebrun);
    font-size: 1.2rem !important;
}
body.bvv-design .bvv-hours-card--museum > :is(h2, h3):first-child { background: var(--bvv-aa-vand); }
body.bvv-design .bvv-hours-card--restaurant > :is(h2, h3):first-child { background: var(--bvv-mursten); }
body.bvv-design .bvv-hours-card p { font-size: .98rem !important; line-height: 1.55; }
body.bvv-design .bvv-hours-card p strong { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bvv-aa-vand); }
body.bvv-design .bvv-hours-card .bvv-free {
    display: inline-block; background: var(--bvv-eng-gron); color: #fff; font-size: .8rem !important; font-weight: 700;
    padding: .25rem .8rem; border-radius: 20px;
}

/* ---------- Kontaktkort ---------- */
body.bvv-design .bvv-contact-grid {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; margin-bottom: 1.5rem;
}
@media (max-width: 900px) { body.bvv-design .bvv-contact-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto !important; margin-right: auto !important; } }
body.bvv-design .bvv-contact-grid > * { margin: 0 !important; }
body.bvv-design .bvv-contact-card {
    background: var(--bvv-kort); border-radius: var(--bvv-radius); padding: 1.6rem 1.5rem !important; text-align: center;
    border: 1px solid var(--bvv-linje); box-shadow: var(--bvv-skygge);
}
body.bvv-design .bvv-contact-card > * { margin-top: .45rem !important; margin-bottom: 0 !important; }
body.bvv-design .bvv-contact-card > :is(h2, h3):first-child { margin-top: 0 !important; font-size: 1.2rem !important; }
body.bvv-design .bvv-contact-card p { font-size: .98rem !important; }
body.bvv-design .bvv-contact-card a { font-weight: 600; text-decoration: none; }
body.bvv-design .bvv-contact-card a:hover { text-decoration: underline; }
body.bvv-design .bvv-contact-card .wp-block-buttons { justify-content: center; margin-top: 1rem !important; }

/* ---------- Fotos på undersider ---------- */
body.bvv-design main .wp-block-post-content > .wp-block-image img,
body.bvv-design main .wp-block-post-content > figure.wp-block-image img { border-radius: 12px; box-shadow: var(--bvv-skygge); }
body.bvv-design .bvv-photo-row { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
body.bvv-design .bvv-photo-row > * { margin: 0 !important; }
body.bvv-design .bvv-photo-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
@media (max-width: 620px) { body.bvv-design .bvv-photo-row { grid-template-columns: minmax(0,1fr); } }

/* ---------- Galleri (/billeder/) ---------- */
body.bvv-design .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 10px; }
body.bvv-design .wp-block-gallery .wp-lightbox-container img { cursor: zoom-in; }
body.bvv-design .wp-lightbox-overlay .scrim { background-color: rgba(30, 25, 20, .92) !important; }
body.bvv-design .wp-lightbox-overlay .close-button,
body.bvv-design .wp-lightbox-overlay button { color: #fff; }

/* ---------- Nyhedsoversigt (/nyheder/) ---------- */
body.bvv-design.blog main .wp-block-post-featured-image img { border-radius: 12px; }

/* ---------- Plugin-sider (book/vagtplan) – kun kosmetik ---------- */
body.bvv-design .bvv-booking-form input:not([type="checkbox"]):not([type="radio"]),
body.bvv-design .bvv-booking-form select,
body.bvv-design .bvv-booking-form textarea {
    border: 1px solid rgba(93,74,56,.3); border-radius: 8px; padding: .55rem .7rem; background: #fff; font-size: 1rem;
}
body.bvv-design .bvv-booking-form .button {
    background: var(--bvv-mursten); color: #fff; border: 0; border-radius: 10px; font-weight: 600; font-size: 1rem;
}
body.bvv-design .bvv-vagtplan-table { background: #fff; border-radius: 10px; }

/* ==========================================================================
   MODAL (native <dialog>)
   ========================================================================== */
html.bvv-modal-open { overflow: hidden; }
.bvv-modal {
    border: 0; padding: 0; margin: auto; background: transparent; color: #3A322A;
    width: min(760px, calc(100vw - 2rem)); max-width: 760px; max-height: calc(100dvh - 2rem);
    overflow: visible;
}
.bvv-modal::backdrop { background: rgba(40, 32, 24, .6); backdrop-filter: blur(3px); }
.bvv-modal--fallback {
    position: fixed; inset: 0; z-index: 100000; width: auto; max-width: none; max-height: none;
    display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(40, 32, 24, .6);
}
.bvv-modal--fallback[hidden] { display: none; }
.bvv-modal--fallback .bvv-modal__box { width: min(760px, 100%); }
.bvv-modal__box {
    position: relative; background: #F5F1E8; border-radius: 18px;
    max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
    transform: translateY(16px) scale(.985); opacity: 0;
    transition: transform .28s cubic-bezier(.2, .9, .3, 1.1), opacity .2s ease;
}
.bvv-modal.is-open .bvv-modal__box { transform: none; opacity: 1; }
.bvv-modal__close {
    position: sticky; top: .8rem; float: right; margin: .8rem .8rem 0 0; z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(93, 74, 56, .9); color: #F5F1E8; box-shadow: 0 3px 10px rgba(0,0,0,.25);
    transition: background .2s, transform .2s;
}
.bvv-modal__close:hover { background: #A65D43; transform: rotate(90deg); }
.bvv-modal__close:focus-visible { outline: 3px solid #4A6B6F; outline-offset: 2px; }
.bvv-modal__body { padding: 1.4rem 2.2rem 2.2rem; font-family: 'BVV Source Sans 3', 'Source Sans 3', system-ui, sans-serif; line-height: 1.7; }
.bvv-modal__title {
    font-family: 'BVV Playfair Display', 'Playfair Display', Georgia, serif; font-weight: 600;
    font-size: clamp(1.45rem, 3vw, 1.8rem); color: #5D4A38; margin: 0 0 .6rem; padding-right: 3.2rem; line-height: 1.2;
}
.bvv-modal__content > :first-child { margin-top: 0; }
.bvv-modal__content p { font-size: 1rem; margin: 0 0 .9rem; }
.bvv-modal__content .bvv-modal-lead { font-size: 1.1rem; opacity: .92; margin-bottom: 1.1rem; }
.bvv-modal__content h3 {
    font-family: 'BVV Playfair Display', 'Playfair Display', Georgia, serif; font-weight: 600;
    font-size: 1.2rem; color: #5D4A38; margin: 1.5rem 0 .45rem;
}
.bvv-modal__content a:not(.bvv-btn):not(.wp-element-button) { color: #4A6B6F; font-weight: 600; }
.bvv-modal__content .bvv-figure { margin: 1rem 0 1.2rem; }
.bvv-modal__content .bvv-figure img, .bvv-modal__content img.bvv-modal-img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block;
    box-shadow: 0 6px 22px rgba(93, 74, 56, .15);
}
.bvv-modal__content .bvv-figure figcaption { font-size: .85rem; opacity: .75; text-align: center; margin-top: .5rem; }
.bvv-modal__content .bvv-modal-info {
    background: rgba(255,255,255,.8); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.3rem 0;
    border-left: 4px solid #4A6B6F;
}
.bvv-modal__content .bvv-modal-info dl { margin: 0; }
.bvv-modal__content .bvv-modal-info dt {
    font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4A6B6F; margin-top: .6rem;
}
.bvv-modal__content .bvv-modal-info dt:first-child { margin-top: 0; }
.bvv-modal__content .bvv-modal-info dd { margin: .1rem 0 0; font-size: .98rem; }
.bvv-modal__content .bvv-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.bvv-modal .bvv-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1.3rem; border-radius: 10px;
    font-weight: 600; text-decoration: none; background: #A65D43; color: #F5F1E8; border: 2px solid transparent;
    box-shadow: 0 3px 0 0 #8A4C36; font-family: inherit; font-size: 1rem; cursor: pointer;
}
.bvv-modal .bvv-btn:hover { background: #8A4C36; color: #fff; }
.bvv-modal .bvv-btn--secondary { background: #fff; color: #5D4A38; border-color: rgba(74,107,111,.55); box-shadow: 0 3px 0 0 rgba(74,107,111,.3); }
@media (max-width: 600px) {
    .bvv-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; }
    .bvv-modal__box { border-radius: 18px 18px 0 0; max-height: 92dvh; }
    .bvv-modal__body { padding: 1rem 1.2rem 1.8rem; }
}

/* Respektér reduceret bevægelse */
@media (prefers-reduced-motion: reduce) {
    body.bvv-design *, .bvv-modal * { transition: none !important; animation-duration: .001ms !important; }
    body.bvv-design .bvv-logo-spin { animation: none !important; }
    body.bvv-design .bvv-card:hover { transform: none; }
}

/* Mobil-finpudsning */
@media (max-width: 620px) {
    body.bvv-design { --bvv-gutter: 1.1rem; }
    body.bvv-design .bvv-hero { min-height: 520px; }
    body.bvv-design .bvv-actions { flex-direction: column; align-items: stretch; }
    body.bvv-design .bvv-actions > * { width: 100%; box-sizing: border-box; }
}

/* ---------- Diverse ---------- */
body.bvv-design .bvv-img-portrait img { max-width: 420px; width: 100%; margin: 0 auto; display: block; }
body.bvv-design .bvv-img-portrait figcaption { text-align: center; }
body.bvv-design .bvv-cards-wrap { margin-top: 2rem !important; margin-bottom: 2rem !important; }
body.bvv-design .bvv-hours-card p strong,
body.bvv-design .bvv-contact-card p strong { display: inline-block; }
body.bvv-design .bvv-contact-card p strong { font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--bvv-aa-vand); }

body.bvv-design .bvv-cards--2 .bvv-card__media { aspect-ratio: 16 / 8; }

/* ==========================================================================
   Navbar (v1.1) – sticky, flad hovedmenu, ingen dropdowns, ingen burger
   ========================================================================== */
html:has(body.bvv-has-navbar) { scroll-padding-top: 96px; }
body.bvv-design .bvv-navbar {
    position: -webkit-sticky; position: sticky; top: 0; z-index: 900;
    width: 100%; margin: 0 !important;
    background: rgba(245, 241, 232, 0.96);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--bvv-linje);
    box-shadow: 0 2px 14px rgba(93, 74, 56, 0.06);
}
body.admin-bar.bvv-design .bvv-navbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar.bvv-design .bvv-navbar { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.bvv-design .bvv-navbar { top: 0; } }

body.bvv-design .bvv-navbar__inner {
    max-width: var(--bvv-container); margin: 0 auto;
    padding: 0.55rem var(--bvv-gutter);
    display: flex; align-items: center; gap: 1.25rem;
    box-sizing: content-box;
}
body.bvv-design .bvv-navbar__brand {
    display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
    color: #151e28; text-decoration: none; min-height: 44px;
}
body.bvv-design .bvv-navbar__logo {
    width: 48px; height: 48px; display: block; flex-shrink: 0;
    animation: bvv-spin 5s linear infinite;
}
@keyframes bvv-spin { from { transform: rotate(0deg); } to { transform: rotate(359deg); } }
body.bvv-design .bvv-navbar__name {
    font-family: var(--bvv-serif); font-weight: 600; font-size: 1.08rem; line-height: 1.12;
    color: var(--bvv-mollebrun); max-width: 9.5em;
}

/* Linkrækken: én linje; bliver vandret scrollbar hvis pladsen slipper op */
body.bvv-design .bvv-navbar__nav {
    flex: 1 1 auto; min-width: 0; display: flex;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
body.bvv-design .bvv-navbar__nav::-webkit-scrollbar { display: none; }
body.bvv-design .bvv-navbar__links {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 0.15rem;
    list-style: none; margin: 0 0 0 auto !important; padding: 0 !important;
}
body.bvv-design .bvv-navbar__item { margin: 0; padding: 0; flex-shrink: 0; }
body.bvv-design .bvv-navbar__link {
    display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 0.62rem; white-space: nowrap;
    font-family: var(--bvv-sans); font-size: 0.97rem; font-weight: 500;
    color: var(--bvv-mollebrun); text-decoration: none;
    position: relative; border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}
body.bvv-design .bvv-navbar__link::after {
    content: ""; position: absolute; left: 0.62rem; right: 0.62rem; bottom: 8px;
    height: 2px; border-radius: 2px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
body.bvv-design .bvv-navbar__link:hover { color: var(--bvv-aa-vand); }
body.bvv-design .bvv-navbar__link:hover::after { transform: scaleX(1); }
body.bvv-design .bvv-navbar__link.is-active { color: var(--bvv-mursten); font-weight: 650; }
body.bvv-design .bvv-navbar__link.is-active::after { transform: scaleX(1); background: var(--bvv-mursten); }

body.bvv-design .bvv-navbar__cta {
    flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px;
    padding: 0 1.15rem; border-radius: 999px; white-space: nowrap;
    background: var(--bvv-mursten); color: var(--bvv-hoe-hvid) !important;
    font-family: var(--bvv-sans); font-weight: 600; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 2px 8px rgba(166, 93, 67, 0.25);
    transition: background-color .15s ease, transform .15s ease;
}
body.bvv-design .bvv-navbar__cta:hover { background: var(--bvv-mursten-mork); transform: translateY(-1px); }
body.bvv-design .bvv-navbar__cta.is-active { background: var(--bvv-mursten-mork); box-shadow: inset 0 0 0 2px rgba(245,241,232,.55); }

/* Synligt tastaturfokus */
body.bvv-design .bvv-navbar a:focus-visible {
    outline: 3px solid var(--bvv-aa-vand); outline-offset: 2px; border-radius: 8px;
}
body.bvv-design .bvv-navbar__nav .bvv-navbar__link:focus-visible { outline-offset: -3px; }
body.bvv-design .bvv-navbar__cta:focus-visible { border-radius: 999px; }

/* Mellembredder: strammere, navnet skjules visuelt (logoets link har stadig aria-label) */
@media (max-width: 1240px) {
    body.bvv-design .bvv-navbar__inner { gap: 0.9rem; }
    body.bvv-design .bvv-navbar__link { padding: 0 0.5rem; font-size: 0.95rem; }
    body.bvv-design .bvv-navbar__link::after { left: 0.5rem; right: 0.5rem; }
    body.bvv-design .bvv-navbar__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* Mobil/tablet: kompakt bar (logo + knap) og swipebar linkrække under – ingen burger */
@media (max-width: 1040px) {
    html:has(body.bvv-has-navbar) { scroll-padding-top: 120px; }
    body.bvv-design .bvv-navbar__inner {
        flex-wrap: wrap; gap: 0 0.75rem; padding: 0.4rem 0 0;
    }
    body.bvv-design .bvv-navbar__brand { padding-left: 1rem; gap: 0.55rem; flex: 1 1 auto; min-width: 0; }
    body.bvv-design .bvv-navbar__logo { width: 36px; height: 36px; }
    body.bvv-design .bvv-navbar__name { position: static; width: auto; height: auto; clip: auto; clip-path: none; font-size: 1rem; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.bvv-design .bvv-navbar__cta { margin-right: 1rem; padding: 0 0.95rem; font-size: 0.9rem; }
    body.bvv-design .bvv-navbar__nav {
        order: 3; flex: 0 0 100%; width: 100%;
        margin-top: 0.3rem; border-top: 1px solid var(--bvv-linje);
        scroll-padding-inline: 1rem;
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
                mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%);
    }
    body.bvv-design .bvv-navbar__links { margin: 0 !important; padding: 0 0.6rem !important; gap: 0; }
    body.bvv-design .bvv-navbar__link { min-height: 46px; padding: 0 0.8rem; font-size: 0.95rem; }
    body.bvv-design .bvv-navbar__link::after { left: 0.8rem; right: 0.8rem; bottom: 7px; }
}
@media (max-width: 360px) {
    body.bvv-design .bvv-navbar__name { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.bvv-design .bvv-navbar__logo { animation: none; }
    body.bvv-design .bvv-navbar__link::after, body.bvv-design .bvv-navbar__cta { transition: none; }
}

/* Footer-menuen: altid åben liste – ingen burger på mobil (kun visning; menuen i DB er urørt) */
body.bvv-has-navbar footer .wp-block-navigation__responsive-container-open { display: none !important; }
body.bvv-has-navbar footer .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: block !important; position: relative !important; width: 100%; z-index: auto; background-color: inherit !important; color: inherit !important; padding: 0 !important;
}
body.bvv-has-navbar footer .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-close { display: none !important; }
body.bvv-has-navbar footer .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__responsive-container-content { display: flex; flex-direction: column; align-items: flex-start; }
body.bvv-has-navbar footer .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container { gap: var(--wp--preset--spacing--30, .6rem); flex-direction: column; align-items: flex-start; }
body.bvv-has-navbar footer .wp-block-navigation-item__content { min-height: 32px; display: inline-flex; align-items: center; }

/* Bookingformularen: felter må ikke gå ud over skærmkanten på mobil */
body.bvv-design .bvv-booking-form :is(input, select, textarea) { max-width: 100%; box-sizing: border-box; }

/* Lightbox: undgå "broken image"-flash når overlay-src endnu ikke er bundet */
body.bvv-design .wp-lightbox-overlay:not(.active) .lightbox-image-container img {
  visibility: hidden;
}
