:root {
    color-scheme: light;
    --color-ink: #263238;
    --color-muted: #647278;
    --color-accent: #a77a35;
    --color-accent-dark: #805a24;
    --color-surface: #ffffff;
    --color-page: #f3f5f4;
    --color-border: #e2e7e5;
    --shadow-card: 0 12px 36px rgba(27, 39, 43, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

#stl-main {
    width: 100%;
    min-height: 100vh;
    background: var(--color-page);
}

.stl-sheet {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-page);
}

.stl-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1000 !important;
    width: 100%;
    margin: 0 auto;
    background: #202526;
    box-shadow: 0 3px 14px rgba(22, 30, 32, 0.16);
}

.stl-shapes {
    position: relative;
    inset: auto;
    z-index: auto;
    overflow: visible;
    width: 100%;
    padding: 0;
    background: #202526;
}

.responsive .stl-header .stl-shapes > .stl-brand {
    display: block;
}

.stl-brand {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.stl-banner {
    display: block;
    width: 100%;
    height: auto;
}

.stl-vmenublock {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #202526;
}

.stl-vmenublockcontent {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stl-vmenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stl-vmenublock ul.stl-vmenu {
    display: flex;
}

.stl-vmenu li {
    margin: 0;
}

.stl-vmenu a {
    display: block;
    padding: 13px 18px;
    border-bottom: 3px solid transparent;
    color: #f5f4f0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.stl-vmenublock ul.stl-vmenu > li > a {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 13px 18px;
    color: #f5f4f0;
    line-height: 1.4;
}

.stl-vmenublock ul.stl-vmenu > li > a:hover,
.stl-vmenublock ul.stl-vmenu > li > a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.stl-vmenu a:hover,
.stl-vmenu a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.stl-vmenu li.current a,
.stl-vmenu li.active a,
.stl-vmenu a.active {
    border-bottom-color: #d7b36f;
    color: #f0cf91;
}

.stl-vmenublock ul.stl-vmenu li.current > a,
.stl-vmenublock ul.stl-vmenu li.active > a {
    border-bottom-color: #d7b36f;
    background: transparent;
    color: #f0cf91;
}

.stl-layout-wrapper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 36px 24px;
}

.stl-content-layout,
.stl-content-layout-row {
    display: block;
    width: 100%;
}

.stl-content {
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 4vw, 48px);
    border: 1px solid rgba(226, 231, 229, 0.8);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.stl-post {
    margin: 0 0 32px;
}

.stl-post:last-child {
    margin-bottom: 0;
}

.stl-postheader {
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 2px solid #e8dfd0;
    color: var(--color-ink);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 650;
    line-height: 1.2;
}

.stl-postcontent {
    color: #3e4b50;
    font-size: 1rem;
    line-height: 1.8;
}

.stl-postcontent img,
.stl-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.stl-postcontent a,
.stl-postcontent a:link,
.stl-postcontent a:visited {
    color: var(--color-accent-dark);
    text-underline-offset: 3px;
}

.stl-postcontent a:hover {
    color: var(--color-ink);
}

.stl-postcontent :focus-visible,
.stl-vmenu a:focus-visible,
.btn:focus-visible {
    outline: 3px solid #d7b36f;
    outline-offset: 3px;
}

.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 24px 0;
}

.pdf-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(27, 39, 43, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.pdf-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(27, 39, 43, 0.1);
}

.pdf-card h4 {
    margin: 0 0 10px;
    color: var(--color-ink);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.pdf-preview {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f7f8f6;
    color: var(--color-accent-dark);
    font-size: 2.5rem;
}

.pdf-info {
    margin-bottom: 14px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--color-accent-dark);
    border-radius: 8px;
    background: var(--color-accent-dark);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #68491d;
    color: #fff;
}

.stl-content .stl-postcontent a.btn,
.stl-content .stl-postcontent a.btn:link,
.stl-content .stl-postcontent a.btn:visited,
.stl-content .stl-postcontent a.btn:hover,
.stl-content .stl-postcontent a.btn:focus-visible {
    color: #fff;
}

.stl-content .stl-postcontent a.btn:hover:not(:disabled) {
    background: #68491d;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-success {
    border-color: #356b55;
    background: #356b55;
}

.btn-success:hover:not(:disabled) {
    background: #28523f;
}

.prijslijst-container {
    margin: 22px 0 0;
}

.prijslijst-container form {
    margin-bottom: 18px;
}

.prijslijst-container iframe {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.quiz-container {
    width: 100%;
    max-width: 820px;
    margin: 20px auto;
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(27, 39, 43, 0.07);
}

.quiz-question {
    margin-bottom: 24px;
    padding: clamp(16px, 3vw, 24px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.quiz-question h3 {
    margin: 0 0 12px;
    color: var(--color-ink);
}

.quiz-options {
    margin: 20px 0;
}

.quiz-option {
    display: block;
    margin: 10px 0;
    padding: 13px 16px;
    border: 1px solid #d7dfdc;
    border-radius: 9px;
    background: #f8faf9;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.quiz-option:hover {
    border-color: var(--color-accent);
    background: #f7f3eb;
}

.quiz-option.selected {
    border-color: var(--color-accent-dark);
    background: #f2e9d8;
    color: var(--color-ink);
}

.quiz-option.correct {
    border-color: #356b55;
    background: #356b55;
    color: #fff;
}

.quiz-option.incorrect {
    border-color: #a83e3e;
    background: #a83e3e;
    color: #fff;
}

.quiz-explanation {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    background: #f7f3eb;
}

.quiz-explanation.show {
    display: block;
}

.quiz-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.quiz-progress {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.9rem;
    text-align: center;
}

.quiz-results {
    display: none;
    padding: 28px 12px;
    text-align: center;
}

.quiz-results.show {
    display: block;
}

.quiz-score {
    margin: 16px 0;
    color: #356b55;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
}

.stl-footer {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 24px;
    color: var(--color-muted);
    text-align: center;
}

.stl-footer a {
    color: var(--color-muted) !important;
}

@media (max-width: 640px) {
    .stl-vmenublockcontent {
        padding: 6px 10px;
    }

    .stl-vmenu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px;
    }

    .stl-vmenublock ul.stl-vmenu {
        display: grid;
    }

    .stl-vmenu li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .stl-vmenu a {
        height: 100%;
        padding: 11px 8px;
        font-size: 0.88rem;
    }

    .stl-vmenublock ul.stl-vmenu > li > a {
        padding: 11px 8px;
    }

    .stl-layout-wrapper {
        padding: 20px 12px;
    }

    .stl-content {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .stl-postcontent {
        font-size: 0.96rem;
    }

    .pdf-grid {
        grid-template-columns: 1fr;
    }

    .pdf-card .btn {
        width: 100%;
        margin: 4px 0 !important;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn,
    .quiz-container > #quiz-start .btn {
        width: 100%;
    }

    .prijslijst-container iframe {
        min-height: 65vh;
    }

    .stl-footer {
        padding: 0 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
