html, body {
    font-family: var(--font-sans);
    background: var(--surface-page);
    color: var(--text-body);
    margin: 0;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--accent-primary);
}

    a:hover, .btn-link:hover {
        color: var(--accent-primary-hover);
    }

/* Koppen (#182): Playfair, groot en licht, met een cursief accent in de hoofdkleur:
   <h1>Komende <em>bruiloften</em></h1>. */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-heading);
    line-height: 1.15;
}

h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--accent-primary);
}

/* Knoppen (#182): één set voor de hele app.
   .btn-primary   de hoofdactie: gevuld in de hoofdkleur
   .btn-secondary de tweede keuze: alleen een rand
   .btn-danger    verwijderen: rode rand en rode tekst
   .remove        het kleine kruisje achter een rij (verwijderen)
   Uit (disabled) is grijs zand, duidelijk anders dan een knop die werkt. */
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--button-height);
    padding: 0 24px;
    box-sizing: border-box;
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: var(--tracking-normal);
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
    color: var(--text-on-accent);
    background: var(--accent-primary);
    border: 1.5px solid var(--accent-primary);
    box-shadow: var(--shadow-button);
}

    .btn-primary:hover:not(:disabled) {
        color: var(--text-on-accent);
        background: var(--accent-primary-hover);
        border-color: var(--accent-primary-hover);
        transform: translateY(-1px);
    }

.btn-secondary {
    color: var(--text-heading);
    background: transparent;
    border: 1.5px solid var(--accent-primary);
}

    .btn-secondary:hover:not(:disabled) {
        color: var(--text-heading);
        background: var(--surface-card-alt);
    }

.btn-danger {
    color: var(--color-danger);
    background: var(--surface-card);
    border: 1.5px solid var(--color-danger-border);
}

    .btn-danger:hover:not(:disabled) {
        color: var(--color-danger);
        background: var(--color-danger-soft);
    }

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-danger:disabled {
    color: var(--text-disabled);
    background: var(--surface-disabled);
    border-color: var(--surface-disabled);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: var(--color-danger);
    cursor: pointer;
}

    .remove:hover:not(:disabled) {
        border-color: var(--color-danger-border);
        background: var(--color-danger-soft);
    }

    .remove:disabled {
        color: var(--text-disabled);
        cursor: not-allowed;
    }

/* Bootstrap gebruikt .placeholder voor grijze laadblokken; in deze app is het de tekst van
   een lege lijst ("Nog geen taken."). Zonder dit verdween die tekst achter een grijs vlak. */
.placeholder {
    display: block;
    min-height: 0;
    width: auto;
    background: none;
    opacity: 1;
    cursor: auto;
    vertical-align: baseline;
}

td.placeholder {
    display: table-cell;
}

span.placeholder {
    display: inline;
}

/* Sierlijn met een hartje tussen secties: <div class="ornament" aria-hidden="true"></div>.
   De lijnen en het hartje volgen de huisstijlkleuren (--decor-line). */
.ornament {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0 28px;
    color: var(--decor-line);
}

    .ornament::before,
    .ornament::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border-subtle);
    }

    .ornament svg {
        width: 20px;
        height: 18px;
        flex-shrink: 0;
    }

/* Paginakop: blush vlak met ronde hoeken en een lijntekening van takjes. */
.page-hero {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    padding: 36px 40px;
    border-radius: var(--radius-panel);
    background: var(--surface-header);
}

    .page-hero > :not(.page-hero-decor) {
        position: relative;
    }

    .page-hero-decor {
        position: absolute;
        inset: 0;
        overflow: hidden;
        border-radius: inherit;
        pointer-events: none;
    }

    .page-hero h1 {
        margin: 0;
    }

    .page-hero-twigs {
        position: absolute;
        right: -20px;
        top: -30px;
        width: 260px;
        height: 200px;
        color: var(--decor-soft);
        pointer-events: none;
    }

.page-hero-kicker {
    font-size: 13px;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--text-label);
}

.page-hero-intro {
    margin: 6px 0 0;
    font-size: 17px;
    color: var(--text-body);
}

/* Lege lijst: een tekeningetje, een vriendelijke kop en de knoppen om te beginnen. */
.empty-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 36px 24px;
    text-align: center;
    background: var(--surface-card);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-card);
}

    .empty-panel svg {
        width: 120px;
        height: 90px;
        color: var(--decor-line);
    }

    .empty-panel h2,
    .empty-panel h3 {
        margin: 0;
        font-size: 24px;
    }

    .empty-panel p {
        max-width: 380px;
        margin: 0;
        color: var(--text-body);
    }

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--color-white), 0 0 0 0.25rem var(--accent-primary);
}

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    /* Two-tone ring: the dark outline shows on light surfaces, the white inner ring on dark ones
       (the sidebar, dark buttons), so focus stays visible whatever the background. */
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--color-white);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--accent-sage);
}

.invalid {
    outline: 1px solid #9b3b2f;
}

.validation-message {
    color: #9b3b2f;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Er is iets misgegaan."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: var(--color-sand);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--accent-primary);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Inloggen en registreren (Login.razor, Register.razor): gecentreerde kaart in de huisstijl */
.auth-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 48px 16px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.auth-heart {
    width: 72px;
    height: auto;
}

.auth-wordmark {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-label);
}

.auth-tagline {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-label);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    background: var(--surface-card);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
}

    .auth-card h1 {
        font-family: var(--font-display);
        font-weight: 400;
        font-size: 34px;
        color: var(--text-heading);
        margin: 0;
    }

.auth-intro {
    font-size: 14px;
    color: var(--text-muted);
    margin: 6px 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .auth-field label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: var(--tracking-mid);
        color: var(--text-label);
    }

    .auth-field input {
        width: 100%;
        box-sizing: border-box;
        min-height: var(--button-height);
        padding: 0 16px;
        font-family: var(--font-sans);
        font-size: 16px;
        color: var(--text-heading);
        background: var(--color-white);
        border: 1px solid var(--text-label);
        border-radius: var(--radius-field);
    }

        .auth-field input:focus {
            border-color: var(--accent-primary);
        }

.auth-errors {
    margin: 0;
    padding: 12px 16px 12px 32px;
    font-size: 14px;
    color: var(--text-heading);
    background: var(--color-blush-light);
    border: 1px solid var(--color-blush);
}

.auth-alert {
    padding-left: 16px;
}

.auth-submit {
    margin-top: 8px;
    min-height: var(--button-height);
    padding: 0 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-on-accent);
    background: var(--accent-primary);
    border: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    cursor: pointer;
}

    .auth-submit:hover:not(:disabled) {
        background: var(--accent-primary-hover);
    }

    .auth-submit:disabled {
        color: var(--text-disabled);
        background: var(--surface-disabled);
        box-shadow: none;
        cursor: not-allowed;
    }

.auth-link-button {
    display: block;
    text-align: center;
    text-decoration: none;
}

.auth-forgot {
    align-self: flex-end;
    font-size: 13px;
    color: var(--accent-primary);
}

.auth-switch {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Printen (draaiboek, geloftes): on screen the editable parts, on paper only the
   read-only part. The component whose Printen button was pressed marks its print part
   with .print-target while printing, and only that is printed, without the menu, tabs
   or other sections around it (Mijn bruiloft shows several at once). */
.print-only {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block;
    }

    body:has(.print-target) * {
        visibility: hidden;
    }

    body:has(.print-target) .print-target,
    body:has(.print-target) .print-target * {
        visibility: visible;
    }

    body:has(.print-target) .print-target {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
}

/* Telefoon (#182): velden en knoppen groot genoeg voor de duim, niets breder dan het scherm. */
@media (max-width: 768px) {
    input:not([type=checkbox]):not([type=radio]):not([type=color]),
    select,
    textarea {
        min-height: var(--tap-min);
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    img,
    iframe,
    video {
        max-width: 100%;
    }

    .page-hero {
        padding: 28px 24px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        white-space: normal;
        text-align: center;
        padding: 8px 20px;
    }
}
