/* =========================================================
   AOO legacy.css
   ---------------------------------------------------------
   Purpose:
   - Backward compatibility for older markup/classes that still
     exist in legacy posts/pages.
   - Small one-off selectors that are hard to relocate.
   ---------------------------------------------------------
   Keep this file SMALL and STABLE.
   New UI work belongs in:
   - foundation/*.css  (tokens/base/layout)
   - components/*.css  (buttons/callouts/infocards/...)
   - pages/*.css       (page-specific layouts)
   Version: 2026-04-14 — opgeschoond: duplicaten verwijderd,
            component/foundation secties naar eigen bestanden
   ========================================================= */

/* ---------------------------------------------------------
   1) Legacy button aliases (still used in older content)
   ---------------------------------------------------------
   ⚠️  TODO — JOUW BESLISSING NODIG:
   .aoo-cta a en .aoo-cta-outline a zijn op dit moment op
   DRIE plekken gedefinieerd:
     1) Hier in legacy.css          (border-radius: 10px)
     2) In components/buttons.css   (border-radius: var(--aoo-cta-radius) = 18px)
     3) In legacy-1404.css          (border-radius: 10px)

   Laadvolgorde: buttons.css wint van legacy.css (geladen eerder),
   legacy.css wint van buttons.css voor specifieke hover-states.
   Dit is inconsistent en moeilijk te debuggen.

   Aanbeveling: verwijder sectie 1 hier + in legacy-1404.css,
   en laat components/buttons.css de enige definitie zijn.
   Doe dit pas nadat je gecontroleerd hebt of oudere content
   visueel nog klopt met de buttons.css-variant (18px radius).
   --------------------------------------------------------- */

.aoo-cta a,
.aoo-cta-outline a {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    padding: .75em 1.35em;
    border-radius: 10px;
    text-decoration: none;
    transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.aoo-cta a {
    background: var(--brand);
    color: #fff;
    border: 2px solid var(--brand);
}

.aoo-cta a:hover,
.aoo-cta a:focus {
    background: #c8001d;
    border-color: #c8001d;
    transform: translateY(-1px);
    text-decoration: none;
}

.aoo-cta-outline a {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.aoo-cta-outline a:hover,
.aoo-cta-outline a:focus {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

@media (max-width: 600px) {
    .aoo-cta a,
    .aoo-cta-outline a {
        font-size: .95rem;
        padding: .65em 1.15em;
    }
}

/* ---------------------------------------------------------
   2) Legacy callouts / info blocks
   --------------------------------------------------------- */

/* Legacy "Local tip" block (older markup) */
.local-tip {
    position: relative;
    background: var(--blue-bg);
    border-left: 4px solid #00a2d3;
    border-radius: var(--radius);
    padding: 72px 16px 16px 108px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    max-width: 700px;
}

.local-tip::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
    height: 60px;
    background-image: url('https://media.allesoveroostenrijk.nl/uploads/2025/06/vincent-Oostenrijk-expert.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: var(--shadow-xs);
    z-index: 2;
}

.local-tip::after {
    content: "Local tip";
    position: absolute;
    top: 20px;
    left: 96px;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    color: #005f8a;
    line-height: 1.2;
}

.local-tip p {
    margin-top: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.local-tip b,
.local-tip strong {
    font-family: inherit;
    font-weight: 700;
    color: inherit;
    display: inline;
}

/* Verberg <strong> als iemand het als visuele titel gebruikte */
.local-tip > strong:first-child {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

/* Legacy "tip" block (dashed avatar) */
.tip {
    position: relative;
    background: #ffffff;
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    padding: 32px 16px 16px 108px;
    margin: 2rem auto;
    box-shadow: var(--shadow);
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

.tip::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
    height: 60px;
    background-image: url('https://media.allesoveroostenrijk.nl/uploads/2025/06/vincent-Oostenrijk-expert.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: var(--shadow-xs);
    z-index: 2;
}

.tip::after {
    content: "";
    position: absolute;
    top: 32px;
    left: 76px;
    border: 10px solid transparent;
    border-right-color: #fff;
    z-index: 1;
}

.tip strong {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.tip p {
    margin-top: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    word-break: normal;
}

/* "Wist je dat" */
.wistjedat {
    background: var(--blue-bg);
    border: 2px solid var(--blue-border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    position: relative;
    color: #0d47a1;
    font-size: 1rem;
    line-height: 1.5;
}

.wistjedat::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--blue-bg);
}

.wistjedat::before {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 38px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid var(--blue-border);
}

/* Disclaimer */
.disclaimer {
    background: var(--brand-alt-bg);
    border: 1px solid var(--brand-alt-border);
    border-left: 4px solid #8d2d2d;
    border-radius: 6px;
    padding: 16px 16px 16px 80px;
    font-size: .9em;
    color: #333;
    position: relative;
    margin-top: 2em;
}

.disclaimer::before {
    content: "!";
    width: 48px;
    height: 48px;
    position: absolute;
    top: 16px;
    left: 16px;
    background: #8d2d2d;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-family: sans-serif;
    font-size: 26px;
}

.disclaimer p {
    margin: 0 0 .5rem 0;
    line-height: 1.6;
}

.disclaimer p strong,
.disclaimer li strong,
.disclaimer p b,
.disclaimer li b {
    font-family: inherit;
    font-weight: 700;
    font-size: inherit;
    color: inherit;
    display: inline;
}

.disclaimer p > strong:first-child {
    margin-right: .25em;
}

/* Let op */
.letop-box {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    border-left: 4px solid #e0a000;
    border-radius: 6px;
    padding: 12px 14px 12px 52px;
    font-size: .95em;
    color: #333;
    position: relative;
    margin-top: 1.5em;
}

.letop-box::before {
    content: "!";
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: #e0a000;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-family: sans-serif;
    font-size: 17px;
}

.letop-box strong {
    display: inline;
    font-weight: 600;
    margin-right: .25em;
}

@media (max-width: 600px) {
    .letop-box {
        padding: 10px 12px 10px 46px;
        font-size: .9em;
    }

    .letop-box::before {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 15px;
        left: 10px;
    }
}
/* "Servus" legacy card */
.servus-card {
    position: relative;
    background: var(--beige-bg);
    border: 2px solid var(--beige-border);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem 1.5rem 108px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    color: #333;
    line-height: 1.6;
    max-width: 700px;
}

.servus-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-image: url('https://media.allesoveroostenrijk.nl/uploads/2025/06/vincent-Oostenrijk-expert.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid var(--beige-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.servus-card h2 {
    margin: 0 0 .5rem;
    color: #b87333;
    font-size: 1.3rem;
    font-weight: 700;
}

.servus-card p {
    margin: .5rem 0 1rem;
}

.servus-card a {
    display: inline-block;
    background: #e6b980;
    color: #fff;
    padding: .75em 1.5em;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .3s ease, transform .2s ease;
}

.servus-card a:hover {
    background: #d19a5f;
    transform: translateY(-2px);
}

/* Eenvoudige info/tip boxes (oudere content) */
.info-box {
    background-color: #f5f7fa;
    border-left: 4px solid #006699;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.tip-box {
    background-color: #fdf8f0;
    border-left: 4px solid #e67e22;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Support box */
.aoo-support-box {
    background-color: #f3faf7;
    border-left: 4px solid #2ecc71;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.aoo-support-badge {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: inline-block;
    opacity: 0.85;
    text-align: center;
}

.aoo-support-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.aoo-support-text,
.aoo-support-hint {
    margin: 0.25rem 0;
    line-height: 1.6;
}

.aoo-support-button {
    display: block;
    margin: 0.6rem auto 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background-color: #2ecc71;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.aoo-support-button:hover,
.aoo-support-button:focus {
    background-color: #27ae60;
    text-decoration: none;
}

/* ---------------------------------------------------------
   3) Tooltip (legacy)
   --------------------------------------------------------- */

.aoo-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.aoo-tooltip__trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.aoo-tooltip__icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid var(--brand);
    color: var(--brand);
    background-color: #fff;
    line-height: 1;
}

.aoo-tooltip__bubble {
    position: absolute;
    z-index: 1000;
    max-width: 280px;
    padding: 0.8em 1em;
    background: #fff9f3;
    color: #5a4632;
    border: 1px solid #e6b980;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.aoo-tooltip__bubble::after {
    content: "";
    position: absolute;
    border: 6px solid transparent;
}

.aoo-tooltip[data-pos="top"] .aoo-tooltip__bubble {
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, -6px);
}

.aoo-tooltip[data-pos="top"] .aoo-tooltip__bubble::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #fff9f3;
}

.aoo-tooltip[data-pos="bottom"] .aoo-tooltip__bubble {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
}

.aoo-tooltip[data-pos="bottom"] .aoo-tooltip__bubble::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #fff9f3;
}

.aoo-tooltip[data-pos="left"] .aoo-tooltip__bubble {
    right: 100%;
    top: 50%;
    transform: translate(-6px, -50%);
}

.aoo-tooltip[data-pos="left"] .aoo-tooltip__bubble::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #fff9f3;
}

.aoo-tooltip[data-pos="right"] .aoo-tooltip__bubble {
    left: 100%;
    top: 50%;
    transform: translate(6px, -50%);
}

.aoo-tooltip[data-pos="right"] .aoo-tooltip__bubble::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #fff9f3;
}

.aoo-tooltip.is-open .aoo-tooltip__bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   4) One-off legacy selectors (avoid adding new ones)
   --------------------------------------------------------- */

.copyright-blok {
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    font-size: .75em;
    padding: 10px;
    color: #333;
}

/* GenerateBlocks legacy IDs (keep only while still referenced) */
.gb-headline-50900f11 {
    display: inline-block;
    background-color: #007f6c;
    color: #fff !important;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: .5rem;
    text-transform: uppercase;
}

.gb-headline-d05f786f a {
    color: #fff;
    text-decoration: none;
    transition: color .3s ease;
}

.gb-headline-d05f786f a:hover {
    color: #e0e0e0;
}

/* ---------------------------------------------------------
   5) Rank Math FAQ accordion (plugin markup, one-off)
   --------------------------------------------------------- */

#rank-math-faq .rank-math-list-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

#rank-math-faq .rank-math-question {
    padding: .75rem 1rem;
    margin: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    background: #fff;
    position: relative;
}

#rank-math-faq .rank-math-question::after {
    content: "▼";
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: transform .2s;
}

#rank-math-faq .rank-math-question.active::after {
    content: "▲";
}

#rank-math-faq .rank-math-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: #fff;
}

#rank-math-faq .rank-math-question.active + .rank-math-answer {
    max-height: 1000px;
}

/* ---------------------------------------------------------
   6) Rank Math TOC wrapper (plugin markup)
   --------------------------------------------------------- */

.toc-blok,
.toc-blok.wp-block-group {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 1.25rem 0;
}

#rank-math-toc,
.wp-block-rank-math-toc-block,
.rank-math-toc-block {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 1.25rem 0;
}

#rank-math-toc > h2,
.wp-block-rank-math-toc-block > h2,
.rank-math-toc-title {
    margin: 0 0 .4rem;
    font-size: 0;
    line-height: 0;
}

.toc-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #0a66c2;
    background: #f4f8fc;
    border: 1px solid #0a66c2;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    font-size: .9rem;
    padding: .4rem .8rem;
}

.toc-toggle:hover,
.toc-toggle:focus {
    background: #e6f0fb;
    color: #084d94;
    border-color: #084d94;
}

@media (min-width: 768px) {
    .toc-toggle {
        font-size: 1rem;
        padding: .55rem 1rem;
    }
}

#rank-math-toc nav,
.wp-block-rank-math-toc-block nav,
.rank-math-toc-block .rank-math-toc-content {
    font-size: .88rem;
    line-height: 1.35;
    margin-top: .5rem;
}

#rank-math-toc ul,
.wp-block-rank-math-toc-block ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

#rank-math-toc li + li,
.wp-block-rank-math-toc-block li + li {
    margin-top: .35rem;
}

#rank-math-toc a,
.wp-block-rank-math-toc-block a,
.rank-math-toc-block a {
    color: #0b63b0;
    text-decoration: none;
    border-bottom: 1px dotted rgba(11, 99, 176, .3);
    transition: color .2s ease, border-color .2s ease;
}

#rank-math-toc a:hover,
.wp-block-rank-math-toc-block a:hover,
.rank-math-toc-block a:hover {
    color: #084d94;
    border-bottom-color: rgba(8, 77, 148, .5);
}

#rank-math-toc.is-collapsed nav,
.wp-block-rank-math-toc-block.is-collapsed nav,
.rank-math-toc-block.is-collapsed .rank-math-toc-content {
    display: none;
}

/* ---------------------------------------------------------
   7) Search results thumbnail
   --------------------------------------------------------- */

.search .search-thumb {
    display: block;
    float: left;
    margin: 0 16px 8px 0;
    width: 180px;
}

.search .search-thumb__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
}

/* ---------------------------------------------------------
   8) Nofollow / sponsored link styling (content scope only)
   --------------------------------------------------------- */

.site-content :is(.entry-content, .wp-block-post-content) a[rel~="nofollow"],
.site-content :is(.entry-content, .wp-block-post-content) a[rel~="sponsored"] {
    text-decoration-style: dotted !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: .22em !important;
}
