:root {
    --color-bg: #f3f5fb;
    --color-bg-alt: #ffffff;
    --color-accent: #b48a53;
    --color-accent-dark: #8f6937;
    --color-text: #101d3f;
    --color-muted: #506080;
    --color-border: #d5ddec;
    --color-hero-overlay: rgba(7, 21, 56, 0.67);
    --color-header-bg: #071538;
    --header-height: 82px;
    --container-width: 1120px;
    --color-header-gradient: linear-gradient(125deg, #061231 0%, #10265f 52%, #081a45 100%);
    --color-surface-navy: #0c1f4c;
    --color-surface-navy-soft: #132b63;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.site-body {
    margin: 0;
    padding-top: var(--header-height);
    font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: radial-gradient(circle at 8% 8%, #ffffff 0%, #f4f6fc 32%, #eef2fa 100%);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--header-height);
    padding: 0.45rem 0;
    display: flex;
    align-items: center;
    background: var(--color-header-gradient);
    color: #f6f7ed;
    box-shadow: 0 8px 24px rgba(7, 21, 56, 0.35);
    border-bottom: 1px solid rgba(180, 138, 83, 0.45);
}

.site-header .container {
    max-width: var(--container-width);
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    text-decoration: none;
    line-height: 0;
}

.header-logo {
    display: block;
    max-height: 48px;
    width: auto;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #BBC3D2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(28, 45, 73, 0.4);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1rem;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.main-nav a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.header-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.44);
    color: #f6f7ed;
}

.btn-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-surface-navy);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #f6f7ed;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 74vh;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--color-hero-overlay), var(--color-hero-overlay)), url('/images/hero-home.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    padding: 7rem 0 5rem;
    color: #f6f7ed;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 1.12;
    margin: 0 0 1rem;
    text-shadow: 0 5px 18px rgba(5, 14, 36, 0.45);
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 32rem;
    margin-bottom: 1.5rem;
    opacity: 0.96;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section {
    padding: 4rem 0;
    background: transparent;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.section-grid-reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
}

.section-content h2 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0 0 1rem;
}

.section-content p {
    margin: 0 0 0.85rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.section-media {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(12, 31, 76, 0.2);
    min-height: 260px;
}

.photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.photo-team {
    background-image: url('/images/fc_img_1.jpg');
}

.photo-ceremony {
    background-image: url('/images/fc_img_2.jpg');
}

.link-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--color-surface-navy);
    border-bottom: 1px solid rgba(180, 138, 83, 0.65);
    padding-bottom: 0.1rem;
}

.link-more:hover {
    color: var(--color-accent-dark);
}

.icon-list {
    margin: 1rem 0 0.5rem;
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.icon-list li {
    margin-bottom: 0.35rem;
}

.testimonial-strip {
    padding: 3rem 0;
    background: var(--color-header-gradient);
    border-top: 1px solid rgba(180, 138, 83, 0.5);
    border-bottom: 1px solid rgba(180, 138, 83, 0.5);
    text-align: center;
    color: #f6f7ed;
}

.testimonial-strip blockquote {
    margin: 0 auto 0.75rem;
    max-width: 700px;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(246, 247, 237, 0.82);
}

.section-header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-size: 1.8rem;
    margin: 0 0 0.75rem;
}

.section-header p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.obituary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.obituary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.obituary-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #BBC3D2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #101A2B;
}

.obituary-main h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.obituary-meta {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.obituary-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.obituary-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-accent-dark);
}

.obituary-link:hover {
    color: var(--color-accent);
}

.obituary-more {
    margin-top: 1.8rem;
    text-align: center;
}

.overlijdens-table-wrapper {
    margin-top: 1.5rem;
}

.overlijdens-status {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(84, 103, 125, 0.06);
    color: var(--color-muted);
    font-size: 0.95rem;
}

.overlijdens-status-error {
    background: rgba(179, 53, 53, 0.08);
    color: #8b1e1e;
}

.overlijdens-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.overlijdens-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
    background: var(--color-bg-alt);
    box-shadow: 0 12px 30px rgba(16, 26, 43, 0.08);
}

.overlijdens-card-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

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

.overlijdens-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.overlijdens-card-name {
    margin: 0 0 0.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.overlijdens-card-meta {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.overlijdens-card-note {
    margin: 0.7rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    font-style: italic;
}

.overlijdens-card-actions {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.overlijdens-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.overlijdens-button:hover {
    background: #101a2b;
    color: #f6f7ed;
    border-color: #101a2b;
    box-shadow: 0 8px 18px rgba(16, 26, 43, 0.25);
}

@media (max-width: 1024px) {
    .overlijdens-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .overlijdens-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .overlijdens-card-photo {
        max-width: none;
        height: 220px;
    }
}

.overlijdens-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.overlijdens-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 26px rgba(12, 31, 76, 0.12);
}

.overlijdens-table thead {
    background: #ecf1fb;
}

.overlijdens-table th,
.overlijdens-table td {
    padding: 0.8rem 1rem;
    text-align: left;
}

.overlijdens-table th {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.overlijdens-table tbody tr:nth-child(even) {
    background: #f7f9ff;
}

.overlijdens-name {
    font-weight: 600;
}

.overlijdens-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.overlijdens-photo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.overlijdens-flags {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.overlijdens-flag {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.overlijdens-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.overlijdens-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    color: var(--color-accent-dark);
    background: #ffffff;
}

.condoleren-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(16, 26, 43, 0.55);
    z-index: 150;
    padding: 1.5rem;
}

.condoleren-modal-overlay.is-visible {
    display: flex;
}

.condoleren-modal {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 22px 50px rgba(16, 26, 43, 0.35);
    padding: 1.75rem 1.75rem 1.5rem;
    position: relative;
}

.condoleren-modal.condoleren-modal-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}

.condoleren-modal h3 {
    margin: 0 0 0.4rem;
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
}

.condoleren-modal-subtitle {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.koffietafel-page {
    margin-top: 1.75rem;
    margin-bottom: 2rem;
}

.koffietafel-page-lead {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-muted);
}

.koffietafel-page .condoleren-form .form-actions {
    margin-bottom: 1.5rem;
}

.condoleren-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-muted);
}

.condoleren-modal.rouwdruk-modal {
    max-width: min(960px, 96vw);
}

.rouwdruk-modal-frame-wrap {
    margin-top: 0.65rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #eef1f6;
    height: min(70vh, 720px);
}

.rouwdruk-modal-iframe {
    display: block;
    width: 100%;
    height: min(70vh, 720px);
    border: 0;
    background: #ffffff;
}

.rouwdruk-modal-hint {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    text-align: right;
}

.rouwdruk-modal-hint a {
    color: var(--color-surface-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 138, 83, 0.65);
}

.rouwdruk-modal-hint a:hover {
    color: var(--color-accent-dark);
}

.condoleren-status {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.condoleren-status-error {
    background: rgba(179, 53, 53, 0.08);
    color: #8b1e1e;
}

.condoleren-status-success {
    background: rgba(45, 148, 89, 0.1);
    color: #256a3a;
}

.condoleren-status-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.condoleren-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(84, 103, 125, 0.3);
    border-top-color: var(--color-accent);
    animation: condoleren-spin 0.6s linear infinite;
}

@keyframes condoleren-spin {
    to {
        transform: rotate(360deg);
    }
}

.condoleren-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.condoleren-form label {
    font-size: 0.9rem;
    font-weight: 600;
}

.condoleren-form input[type="text"],
.condoleren-form input[type="number"],
.condoleren-form input[type="email"],
.condoleren-form textarea {
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
    font-family: inherit;
}

.condoleren-form textarea {
    resize: vertical;
    min-height: 96px;
}

.condoleren-form input:focus,
.condoleren-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(84, 103, 125, 0.22);
}

.condoleren-form .form-actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkout-form .form-actions {
    margin-top: 1.5rem;
}

.site-footer {
    margin-top: 0rem;
    background: var(--color-header-gradient);
    color: #f6f7ed;
    padding: 3rem 0 0;
    border-top: 1px solid rgba(180, 138, 83, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-block h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-block p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(232, 236, 245, 0.85);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(180, 138, 83, 0.35);
    padding: 1rem 0;
    margin-top: 0.25rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(232, 236, 245, 0.7);
}

@media (max-width: 960px) {
    .header-inner {
        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }

    .hero-overlay {
        padding-top: 6rem;
    }

    .section-grid,
    .section-grid-reverse {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-media {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-cta {
        align-items: flex-start;
    }

    .obituary-item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    .obituary-link {
        grid-column: 2 / 3;
        justify-self: flex-start;
        margin-top: 0.4rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

.form {
    max-width: 640px;
    margin-top: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .checkout-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.checkout-section {
    margin-bottom: 2.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 8rem;
    line-height: 1.55;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(84, 103, 125, 0.22);
}

.familielogin-login-form .form-group {
    flex-direction: row;
    align-items: center;
    gap: 0 1rem;
    margin-bottom: 0.5rem;
}

.familielogin-login-form .form-group label {
    flex: 0 0 4.75rem;
    margin: 0;
}

.familielogin-login-form .form-group input[type="text"] {
    flex: 1;
    min-width: 0;
    max-width: 22rem;
}

.familielogin-login-form > .btn-primary {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .familielogin-login-form .form-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .familielogin-login-form .form-group label {
        flex: none;
    }

    .familielogin-login-form .form-group input[type="text"] {
        max-width: none;
    }
}

/* Familieruimte: beperk grootte van overlijdensdossier-foto */
.overlijdensdossier-foto {
    max-width: 360px;
}

.overlijdensdossier-foto img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Familieruimte: header met subtiel menu */
.familieruimte-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.familieruimte-header-title h1 {
    margin: 0;
}

.familieruimte-header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.familieruimte-header-nav-leave {
    margin-left: auto;
}

.familieruimte-header-nav-leave button.familieruimte-header-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.familieruimte-header-link {
    text-decoration: none;
    color: var(--color-accent-dark);
    border-bottom: 1px solid transparent;
    padding-bottom: 0.1rem;
}

.familieruimte-header-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

@media (max-width: 640px) {
    .familieruimte-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .familieruimte-header-nav {
        width: 100%;
    }
}

/* Condoleren lijst (familieruimte) */
.condoleren-leeg {
    color: var(--color-muted);
    margin: 0;
}

.condoleren-intro-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.condoleren-intro-row .condoleren-intro-text {
    margin: 0;
    flex: 1;
    min-width: min(100%, 12rem);
}

.condoleren-pdf-btn {
    flex-shrink: 0;
    background: var(--color-header-bg);
    border-color: var(--color-header-bg);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(7, 21, 56, 0.28);
}

.condoleren-pdf-btn:hover {
    background: #050f28;
    border-color: #050f28;
    color: #ffffff;
}

.condoleren-lijst {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.condoleren-item {
    background: var(--color-bg-alt);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(16, 26, 43, 0.06);
}

.condoleren-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.condoleren-item-naam {
    font-size: 1.05rem;
}

.condoleren-item-datum {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.condoleren-item-contact {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.condoleren-item-contact a {
    color: var(--color-accent-dark);
}

.condoleren-item-adres {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.condoleren-item-bericht {
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    font-style: italic;
    color: var(--color-text);
}

/* Bloemen webshop / Bestelde producten (familieruimte) */
.bloemen-intro {
    margin: 0 0 1.5rem;
    color: var(--color-muted);
}

.producten-besteld-section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.factuur-card {
    background: var(--color-bg-alt);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 12px rgba(16, 26, 43, 0.08);
}

.factuur-besteld-meta {
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.factuur-besteld-meta-row {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.35rem 1rem;
    align-items: baseline;
    margin: 0 0 0.5rem;
}

.factuur-besteld-meta-row:last-child {
    margin-bottom: 0;
}

.factuur-besteld-meta dt {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted);
}

.factuur-besteld-meta dd {
    margin: 0;
    font-size: 0.95rem;
}

.factuur-besteld-producten {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.factuur-besteld-producten li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.factuur-besteld-producten li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.factuur-besteld-productnaam {
    flex: 1;
    min-width: min(100%, 12rem);
}

.factuur-besteld-aantal {
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

.text-muted {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.winkel-intro {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    font-size: 1rem;
}

.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.winkelwagen-section {
    background: var(--color-bg-alt);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(16, 26, 43, 0.06);
}

.winkelwagen-section h2 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.winkelwagen-lijst {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.winkelwagen-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.winkelwagen-item:last-child {
    border-bottom: none;
}

.winkelwagen-item-naam {
    flex: 1;
}

.winkelwagen-item-aantal {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.winkelwagen-item-prijs {
    font-weight: 600;
}

.winkelwagen-totaal {
    margin: 0;
    font-size: 1rem;
}

.winkelwagen-afrekenen {
    margin-top: 1rem;
    display: inline-block;
}

.producten-section {
    margin-bottom: 2.5rem;
}

.producten-section h2 {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.producten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-alt);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 12px rgba(16, 26, 43, 0.08);
}

.product-card-image {
    aspect-ratio: 4/3;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border);
    color: var(--color-muted);
    font-size: 0.85rem;
}

.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.product-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.product-card-naam {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-card-beschrijving {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.4;
}

.product-card-prijs {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-card-form {
    margin-top: auto;
    padding-top: 1rem;
}

.product-card-form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-card-aantal-label {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.product-card-aantal-input {
    width: 4rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.product-card-form .btn {
    flex: 1;
    min-width: 140px;
}

/* Homepage layout inspired by debackeruitvaartbegeleiders.be */
.db-home-hero {
    position: relative;
    min-height: 56vh;
}

.db-home-hero-image {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(6, 18, 49, 0.52), rgba(6, 18, 49, 0.52)), url('/images/hero_home.jpg');
    background-size: cover;
    background-position: center;
}

.db-diensten-hero-image {
    background-image: linear-gradient(rgba(6, 18, 49, 0.52), rgba(6, 18, 49, 0.52)), url('/images/hero_diensten.png');
}

.db-contact-hero-image {
    background-image: linear-gradient(rgba(6, 18, 49, 0.52), rgba(6, 18, 49, 0.52)), url('/images/hero_contact.png');
}

.db-contact-page {
    padding-bottom: 0;
}

.db-contact-pull-up {
    position: relative;
    z-index: 2;
    margin-top: -4.75rem;
    padding-bottom: 0.5rem;
}

.db-contact-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 1.85rem 2.75rem;
    border: 1px solid #e2e9f5;
}

.db-contact-title {
    margin: 0 0 0.65rem;
    font-family: "Playfair Display", serif;
    font-size: 1.85rem;
    line-height: 1.25;
    color: var(--color-surface-navy);
}

.db-contact-lead {
    margin: 0 0 1.35rem;
    color: var(--color-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.db-contact-form {
    max-width: none;
    margin-top: 0;
}

.db-contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 2.5rem;
    margin-bottom: 1.25rem;
}

.db-contact-form-group-full {
    margin-bottom: 1.25rem;
}

.db-contact-form-actions {
    margin-top: 0.25rem;
}

.db-contact-required {
    color: #9a4a3a;
    font-weight: 600;
}

.db-over-ons-hero-image {
    background-image: linear-gradient(rgba(6, 18, 49, 0.52), rgba(6, 18, 49, 0.52)), url('/images/over-ons-hero.jpg');
}

.db-over-ons-hero-image.db-over-ons-hero-image--png {
    background-image: linear-gradient(rgba(6, 18, 49, 0.52), rgba(6, 18, 49, 0.52)), url('/images/over-ons-hero.png');
}

.db-over-ons-section-title {
    margin: 0 0 1.25rem;
    font-family: "Playfair Display", serif;
    font-size: 1.95rem;
    color: var(--color-surface-navy);
}

.db-over-ons-team-section .db-over-ons-section-title {
    text-align: center;
}

.db-over-ons-lead {
    max-width: 42rem;
    margin: 0 auto 1.75rem;
    text-align: center;
    color: var(--color-muted);
    line-height: 1.72;
}

.db-over-ons-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.db-over-ons-team-card {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.1rem 1.15rem 1.25rem;
    text-align: center;
}

/* Zelfde rand/stijl als dienst-tegels; verhouding breedte:hoogte = 0,66 */
.db-over-ons-team-photo {
    width: 100%;
    aspect-ratio: 33 / 50;
    border-radius: 8px;
    margin-bottom: 0.9rem;
    overflow: hidden;
    background-color: #eaf0fb;
    background-size: cover;
    background-position: center;
    border: 1px dashed #c5d2ea;
}

.db-over-ons-team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db-over-ons-team-photo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #d6e0f3 0%, #edf2fc 100%);
}

.db-over-ons-team-name {
    margin: 0 0 0.25rem;
    font-family: "Playfair Display", serif;
    font-size: 1.12rem;
    color: var(--color-surface-navy);
}

.db-over-ons-team-role {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.db-over-ons-team-mail {
    font-size: 0.88rem;
    color: var(--color-surface-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 138, 83, 0.65);
    word-break: break-word;
}

.db-over-ons-team-mail:hover {
    color: var(--color-accent-dark);
}

.db-over-ons-timeline {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
    color: var(--color-muted);
    line-height: 1.72;
}

.db-over-ons-timeline li {
    margin-bottom: 0.75rem;
    padding-left: 0.35rem;
}

.db-over-ons-timeline li:last-child {
    margin-bottom: 0;
}

.db-over-ons-closing {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.4rem 1.35rem;
}

.db-over-ons-closing p {
    margin: 0 0 0.85rem;
    color: var(--color-muted);
    line-height: 1.72;
}

.db-over-ons-closing p:last-child {
    margin-bottom: 0;
}

.db-home-hero-overlay {
    position: relative;
    z-index: 1;
    min-height: 56vh;
    display: flex;
    align-items: center;
}

.db-home-hero-content {
    width: 100%;
}

.db-home-hero-card {
    max-width: 640px;
    background: rgba(7, 21, 56, 0.86);
    border: 1px solid rgba(180, 138, 83, 0.45);
    border-radius: 12px;
    padding: 2rem;
    color: #f6f7ed;
    box-shadow: 0 20px 45px rgba(6, 18, 49, 0.4);
}

.db-home-hero-card h1 {
    margin: 0 0 0.9rem;
    font-family: "Playfair Display", serif;
    font-size: 2.05rem;
    line-height: 1.15;
}

.db-home-hero-card p {
    margin: 0;
    line-height: 1.7;
    color: rgba(246, 247, 237, 0.92);
}

.db-home-hero-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.db-home-section {
    padding: 3.25rem 0;
}

.db-home-overview-row {
    background: #f8faff;
    border-top: 1px solid #e3e9f5;
    border-bottom: 1px solid #e3e9f5;
}

.db-home-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.2rem;
    align-items: stretch;
}

.db-home-intro {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.4rem 1.35rem;
}

.db-home-intro h2,
.db-home-section h2 {
    margin: 0 0 0.9rem;
    font-family: "Playfair Display", serif;
    font-size: 1.95rem;
    color: var(--color-surface-navy);
}

.db-home-intro p {
    margin: 0 0 0.8rem;
    color: var(--color-muted);
    line-height: 1.72;
}

.db-home-obituaries {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.4rem 1.35rem;
}

.db-home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.db-home-head-link {
    color: var(--color-surface-navy);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(180, 138, 83, 0.65);
}

.db-home-obituary-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
}

.db-home-obituary-item {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.db-home-obituary-media {
    width: 58px;
    height: 58px;
}

.db-home-obituary-media img,
.db-home-obituary-fallback {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.db-home-obituary-fallback {
    background: linear-gradient(145deg, #d6e0f3 0%, #edf2fc 100%);
    border: 1px solid #c9d6ed;
}

.db-home-obituary-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
}

.db-home-obituary-item p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.db-home-obituary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid #eef2fa;
}

.db-home-obituary-action-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--color-surface-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(180, 138, 83, 0.55);
}

a.db-home-obituary-action-link {
    display: inline;
}

.db-home-obituary-action-link:hover {
    color: var(--color-accent-dark);
    text-decoration-color: rgba(180, 138, 83, 0.9);
}

.db-home-obituary-action-link--muted {
    color: var(--color-muted);
    text-decoration-style: dotted;
}

.db-home-obituary-item span {
    margin: 0 0.35rem;
}

.db-home-services-title {
    margin-bottom: 1.2rem;
}

.db-home-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.db-home-service-card {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.2rem 1.25rem;
}

.db-home-service-image {
    width: 100%;
    aspect-ratio: 8 / 3;
    border-radius: 8px;
    margin-bottom: 0.9rem;
    background-color: #eaf0fb;
    background-size: cover;
    background-position: center;
    border: 1px dashed #c5d2ea;
}

.db-home-service-image-voor {
    background-image: url('/images/services/voor-de-uitvaart.jpg');
}

.db-home-service-image-tijdens {
    background-image: url('/images/services/tijdens-de-uitvaart.jpg');
}

.db-home-service-image-na {
    background-image: url('/images/services/na-de-uitvaart.jpg');
}

.db-home-service-image-vooraf {
    background-image: url('/images/services/voorafregeling.jpg');
}

.db-home-service-image-bij {
    background-image: url('/images/fc_img_2.jpg');
}

.db-diensten-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.db-diensten-service-block h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
}

.db-diensten-topic-list {
    margin: 0;
    padding: 0.85rem 0 0 1.1rem;
    border-top: 1px solid #eef2fa;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}


.db-home-service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--color-surface-navy);
}

.db-home-service-card p {
    margin: 0 0 0.8rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.db-home-service-card a {
    color: var(--color-surface-navy);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(180, 138, 83, 0.65);
}

.db-home-location {
    background: #f8faff;
    border-top: 1px solid #e3e9f5;
    border-bottom: 1px solid #e3e9f5;
}

.db-home-location-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.db-home-location-image-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e9f5;
    background: #ffffff;
}

.db-home-location-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.db-home-location-content {
    background: #ffffff;
    border: 1px solid #e2e9f5;
    border-radius: 10px;
    padding: 1.4rem 1.35rem;
}

.db-home-location-card h2 {
    color: var(--color-surface-navy);
}

.db-home-location-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-surface-navy);
}

.db-home-location-card p {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.db-home-location-links {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
}

.db-home-location-links a {
    color: var(--color-surface-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 138, 83, 0.75);
}

@media (max-width: 900px) {
    .db-home-overview-grid,
    .db-home-obituary-list,
    .db-home-services-grid,
    .db-diensten-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .db-over-ons-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .db-home-location-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .db-over-ons-team-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .db-home-hero {
        min-height: 50vh;
    }

    .db-home-hero-overlay {
        min-height: 50vh;
    }

    .db-home-hero-card {
        padding: 1.3rem;
    }

    .db-home-hero-card h1 {
        font-size: 1.7rem;
    }

    .db-home-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-contact-pull-up {
        margin-top: -2.5rem;
    }

    .db-contact-card {
        padding: 1.65rem 1.2rem 2rem;
    }

    .db-contact-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

