
/* Daan BAM Mal v2.2.9 - basis met achtergrond, intro, fotokaarten en galerij */

/* BAM/theme bovenkant echt weg */
body.daan-bam-mal-active header,
body.daan-bam-mal-active #masthead,
body.daan-bam-mal-active .site-header,
body.daan-bam-mal-active .site-branding,
body.daan-bam-mal-active .main-navigation,
body.daan-bam-mal-active #site-navigation,
body.daan-bam-mal-active .site-title,
body.daan-bam-mal-active .site-description,
body.daan-bam-mal-active .entry-header,
body.daan-bam-mal-active .page-title,
body.daan-bam-mal-active .post-thumbnail,
body.daan-bam-mal-active .widget-area,
body.daan-bam-mal-active aside,
body.daan-bam-mal-active #colophon,
body.daan-bam-mal-active .site-footer,
body.daan-bam-mal-active .edit-link,
body.daan-bam-mal-active .post-edit-link {
    display: none !important;
}

html body.daan-bam-mal-active {
    margin: 0 !important;
    padding: 0 !important;
    background: #F7EEE2 !important;
}

body.daan-bam-mal-active .site,
body.daan-bam-mal-active #page,
body.daan-bam-mal-active .site-content,
body.daan-bam-mal-active #content,
body.daan-bam-mal-active .content-area,
body.daan-bam-mal-active #primary,
body.daan-bam-mal-active main,
body.daan-bam-mal-active article,
body.daan-bam-mal-active .entry-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

body.daan-bam-mal-active .entry-content > * {
    max-width: none !important;
}

.daan-page-shell {
    width: 100%;
    min-height: 0;
    background: #F7EEE2;
    padding: 0;
    box-sizing: border-box;
}

.daan-hero {
    --daan-bg: linear-gradient(120deg, #e7d7c5, #f8efe5);
    position: relative;
    width: min(100%, 1536px);
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(247,238,226,.58), rgba(247,238,226,.14) 44%, rgba(247,238,226,.10)),
        var(--daan-bg);
    background-size: cover;
    background-position: var(--daan-bg-position, center center);
    color: #24465a;
    font-family: Georgia, "Times New Roman", serif;
}

.daan-hero > * {
    position: relative;
}

/* menu bovenin zoals voorbeeld: transparant over de foto */
.daan-menu-wrap {
    position: relative;
    z-index: 20;
    padding: 32px 70px 12px;
}

.daan-top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.7vw, 28px);
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.daan-top-menu li {
    margin: 0;
    padding: 0;
}

.daan-top-menu a {
    color: #2f4550 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: clamp(11px, .92vw, 16px);
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 1px 2px rgba(255,255,255,.8);
}

.daan-top-menu a:hover {
    color: #0f3b58 !important;
}

/* centrale tekst */
.daan-welcome-panel {
    position: relative;
    z-index: 8;
    width: min(43vw, 560px);
    margin-left: clamp(180px, 16vw, 290px);
    margin-top: clamp(34px, 6vh, 72px);
    text-align: center;
    color: #24465a;
    text-shadow: 0 1px 1px rgba(255,255,255,.55);
}

.daan-script-title {
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: var(--daan-title-size, clamp(56px, 8vw, 128px));
    line-height: .9;
    font-weight: 400;
    color: #17435c;
}

.daan-script-title span {
    font-family: Georgia, serif;
    font-size: .56em;
    font-weight: 400;
}

.daan-subtitle {
    margin-top: 12px;
    text-transform: uppercase;
    font-size: var(--daan-subtitle-size, clamp(22px, 2.2vw, 42px));
    letter-spacing: .18em;
    font-weight: 500;
}

.daan-divider {
    margin: 18px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #17435c;
}

.daan-divider span {
    display: block;
    width: 115px;
    height: 1px;
    background: rgba(23,67,92,.55);
}

.daan-keywords {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: clamp(13px, 1vw, 18px);
    line-height: 1.75;
}

.daan-intro {
    margin-top: 22px;
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: var(--daan-intro-size, clamp(24px, 2.4vw, 42px));
    line-height: 1.25;
    color: #1f4c64;
}

.daan-intro p {
    margin: 0 0 .35em;
}

.daan-location {
    margin-top: 18px;
    font-size: clamp(15px, 1.15vw, 21px);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

/* fotokaarten */
.daan-photo-stack {
    position: absolute;
    z-index: 10;
    top: 92px;
    width: clamp(130px, 12vw, 190px);
    pointer-events: none;
}

.daan-left-stack {
    left: clamp(12px, 3vw, 70px);
}

.daan-right-stack {
    right: clamp(12px, 3vw, 70px);
}

.daan-photo-card {
    position: absolute;
    width: clamp(130px, 12vw, 195px);
    aspect-ratio: 1.22 / .88;
    background: #fffaf2;
    padding: clamp(6px, .7vw, 12px);
    margin: 0;
    box-shadow: 0 11px 24px rgba(45, 35, 25, .26);
    transform: rotate(-4deg);
}

.daan-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.daan-left-stack .daan-card-1 { top: 0; left: 0; transform: rotate(5deg); }
.daan-left-stack .daan-card-2 { top: clamp(120px, 14vw, 210px); left: 20px; transform: rotate(-3deg); }
.daan-left-stack .daan-card-3 { top: clamp(245px, 28vw, 410px); left: -3px; transform: rotate(4deg); }
.daan-left-stack .daan-card-4 { top: clamp(370px, 42vw, 610px); left: 25px; transform: rotate(-5deg); }

.daan-right-stack .daan-card-1 { top: 0; right: 0; transform: rotate(-5deg); }
.daan-right-stack .daan-card-2 { top: clamp(130px, 15vw, 220px); right: 28px; transform: rotate(4deg); }
.daan-right-stack .daan-card-3 { top: clamp(265px, 30vw, 430px); right: 8px; transform: rotate(-2deg); }
.daan-right-stack .daan-card-4 { top: clamp(400px, 45vw, 640px); right: 32px; transform: rotate(5deg); }

/* onderste strook */
.daan-category-strip {
    position: relative;
    z-index: 15;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 138px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-top: clamp(38px, 7vh, 82px);
    padding: 18px 72px 14px;
    background: rgba(249, 239, 224, .94);
    box-shadow: 0 -8px 28px rgba(70,50,30,.12);
    clear: both;
}

.daan-category-strip:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 26px;
    background: rgba(249,239,224,.96);
    clip-path: polygon(0 40%, 8% 28%, 18% 42%, 30% 22%, 43% 38%, 58% 20%, 72% 39%, 86% 25%, 100% 42%, 100% 100%, 0 100%);
}

.daan-cat-item {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #24465a;
}

.daan-cat-icon {
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1;
}

.daan-cat-title {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(23px, 2vw, 34px);
    line-height: 1;
    margin-top: 5px;
}

.daan-cat-text {
    font-size: clamp(11px, .85vw, 15px);
    line-height: 1.35;
    color: #395468;
}

.daan-blue-footer {
    position: relative;
    z-index: 16;
    left: auto;
    right: auto;
    bottom: auto;
    min-height: 96px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 9vw;
    background: #174c68;
    color: #f7eee2;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: clamp(22px, 2vw, 34px);
}

.daan-socials {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: bold;
}

.daan-blue-footer:after {
    content: "♡";
    justify-self: end;
    font-size: clamp(26px, 2.4vw, 42px);
}

/* mobiele versie */
@media (max-width: 900px) {
    .daan-hero {
        min-height: 0;
        overflow: visible;
        background-image: none;
        background-color: #F7EEE2;
    }

    /* Mobiel: de achtergrondfoto hoort alleen achter het bovenste deel.
       Daardoor loopt hij niet meer door achter de onderste titelbalk. */
    .daan-hero::before {
        content: "";
        position: absolute;
        z-index: 0;
        left: 0;
        right: 0;
        top: 0;
        height: 560px;
        background-image:
            linear-gradient(90deg, rgba(247,238,226,.50), rgba(247,238,226,.10) 48%, rgba(247,238,226,.06)),
            var(--daan-bg);
        /* Op mobiel gebruiken we een lichte zoom. Daardoor is er links/rechts
           echt ruimte om te schuiven en hebben de positie-instellingen zichtbaar effect. */
        background-size: auto 112%;
        background-repeat: no-repeat;
        background-position: var(--daan-bg-mobile-position, center center) !important;
        pointer-events: none;
    }

    .daan-menu-wrap,
    .daan-welcome-panel,
    .daan-photo-stack,
    .daan-category-strip,
    .daan-blue-footer {
        position: relative;
        z-index: 2;
    }

    .daan-menu-wrap {
        padding: 18px 18px 8px;
    }

    .daan-top-menu {
        gap: 10px 14px;
    }

    .daan-welcome-panel {
        width: auto;
        margin: 32px 24px 0;
        padding: 18px 14px;
        background: rgba(247,238,226,.62);
        border-radius: 24px;
    }

    .daan-photo-stack {
        opacity: .88;
        top: 540px;
        width: 120px;
    }

    .daan-left-stack { left: 10px; }
    .daan-right-stack { right: 10px; }

    .daan-photo-card {
        width: 118px;
    }

    .daan-category-strip {
        grid-template-columns: repeat(2, 1fr);
        bottom: auto;
        margin-top: 28px;
        padding: 22px 18px 18px;
        gap: 12px;
    }

    .daan-blue-footer {
        min-height: 74px;
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 18px;
    }

    .daan-socials,
    .daan-blue-footer:after {
        display: none;
    }
}


/* Extra zekerheid: de gewone BAM/WordPress footer en bewerklink mogen niet onder onze mal komen */
body.daan-bam-mal-active footer.site-footer,
body.daan-bam-mal-active #colophon,
body.daan-bam-mal-active .site-info,
body.daan-bam-mal-active .entry-footer,
body.daan-bam-mal-active .edit-link,
body.daan-bam-mal-active a.post-edit-link {
    display: none !important;
}

body.daan-bam-mal-active .daan-blue-footer {
    display: grid !important;
}


/* Flexibele inhoud onder de vaste bovenmal.
   Hierdoor kan een gewone pagina of bericht gewoon lange tekst en foto's hebben. */
.daan-content-section {
    width: min(100%, 1536px);
    margin: 0 auto;
    background: rgba(247, 238, 226, .98);
    color: #24465a;
    box-sizing: border-box;
    padding: clamp(28px, 5vw, 70px) clamp(18px, 7vw, 110px);
}

.daan-content-inner {
    max-width: 980px;
    margin: 0 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(17px, 1.15vw, 21px);
    line-height: 1.75;
}

.daan-content-inner h1,
.daan-content-inner h2,
.daan-content-inner h3 {
    color: #174c68;
    line-height: 1.2;
}

.daan-content-inner img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(45, 35, 25, .18);
}

.daan-content-inner figure {
    max-width: 100%;
}

.daan-content-inner a {
    color: #174c68;
    font-weight: 700;
}


/* Belangrijk: de strook en blauwe balk staan in de normale paginastroom.
   Daardoor kunnen titel/intro nooit meer onder de strook verdwijnen. */
.daan-welcome-panel {
    margin-bottom: 0;
}



/* v2.0.9: deze regel mag niet meer zichtbaar zijn op pagina's */
body.daan-bam-mal-active .daan-keywords {
    display: none !important;
}

/* Galerij onder de gewone tekst / shortcode */
.daan-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(14px, 2vw, 26px);
    margin-top: clamp(28px, 4vw, 54px);
}

.daan-gallery-item {
    margin: 0;
    background: #fffaf2;
    padding: 10px;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(45, 35, 25, .18);
    transform: rotate(-1deg);
}

.daan-gallery-item:nth-child(even) {
    transform: rotate(1deg);
}

.daan-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none !important;
}

/* v2.1.9: rechter keuzevak met automatisch opgehaalde paginalinks */
.daan-choice-box {
    position: absolute;
    z-index: 12;
    top: clamp(86px, 10vh, 132px);
    right: clamp(48px, 6vw, 110px);
    width: min(37vw, 590px);
    min-height: clamp(340px, 48vh, 520px);
    box-sizing: border-box;
    padding: clamp(38px, 4vw, 68px) clamp(42px, 5vw, 78px);
    background: rgba(247, 238, 226, .58);
    border: 1px solid rgba(47, 69, 80, .42);
    border-radius: clamp(52px, 6vw, 105px);
    box-shadow: 0 14px 32px rgba(45, 35, 25, .10);
    backdrop-filter: blur(1px);
}

.daan-choice-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.daan-choice-list li {
    margin: 0 0 clamp(12px, 1.3vw, 24px);
    padding: 0;
}

.daan-choice-list a {
    display: inline-block;
    color: #17435c !important;
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    font-size: clamp(32px, 3.2vw, 58px);
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    text-shadow: 0 1px 1px rgba(255,255,255,.55);
}

.daan-choice-list a:hover {
    transform: translateX(4px);
    color: #0f3b58 !important;
}

.daan-linked-pages-box {
    max-height: 280px;
    overflow: auto;
    border: 1px solid #ccd0d4;
    background: #fff;
    padding: 10px 12px;
}

.daan-linked-page-row {
    display: block;
    padding: 6px 0;
}

@media (max-width: 900px) {
    .daan-choice-box {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        min-height: 0;
        margin: 24px 18px 0;
        padding: 24px 28px;
        border-radius: 28px;
        background: rgba(247,238,226,.72);
    }

    .daan-choice-list a {
        font-size: clamp(30px, 9vw, 44px);
    }
}

/* v2.2.0: het rechter paginamenu mag niet verborgen worden door de algemene aside-verbergregel */
body.daan-bam-mal-active .daan-choice-box {
    display: block !important;
}
