/* =====================================================================
   KENNIS INSTITUUT — "Hoogspanning"
   Deep ink-violet, one electric-violet accent, calm paper for reading.
   Signature motif: the concentric antenna ring of the Lakhovsky
   Multiwave Oscillator. One bold moment (the hero); everything else quiet.
   ===================================================================== */

:root {
    /* ── Core palette ─────────────────────────────────────────── */
    --ink:            #17131f;   /* near-black, faint violet cast — "the unlit lab" */
    --ink-2:          #211a2e;   /* raised dark panel */
    --ink-line:       rgba(198, 162, 245, 0.16);

    --paper:          #f4f3f7;   /* page ground */
    --paper-2:        #ffffff;   /* raised card / panel */
    --paper-3:        #eceaf2;   /* sunken / alternate band */

    --text:           #241f31;   /* body on paper */
    --text-soft:      #5b5470;   /* secondary */
    --text-on-dark:       #ede9f5;
    --text-on-dark-soft:  #b7adcc;

    --hv:        #6b2fd6;        /* electric-violet discharge — THE accent */
    --hv-deep:   #521fae;
    --hv-glow:   #c6a2f5;
    --brass:     #a9803f;        /* warm counterpoint: hairline marks only */

    --line:        rgba(36, 31, 49, 0.13);
    --line-strong: rgba(36, 31, 49, 0.26);

    --radius:    14px;
    --radius-sm: 9px;
    --shadow-1: 0 1px 2px rgba(23, 19, 31, 0.06), 0 8px 24px rgba(23, 19, 31, 0.08);
    --shadow-2: 0 2px 8px rgba(23, 19, 31, 0.09), 0 26px 56px rgba(23, 19, 31, 0.16);
    --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);

    /* ── Type ────────────────────────────────────────────────── */
    --serif:   'Spectral', Georgia, 'Times New Roman', serif;
    --display: 'Bricolage Grotesque', 'Spectral', Georgia, serif;
    --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* ── Legacy aliases (admin CSS / inline styles still read these) ── */
    --primary:           #521fae;
    --primary-highlight:  #6b2fd6;
    --primary-deep:       #241f31;
    --ki-gold:            #c6a2f5;
    --ki-gold-light:      #e4d3fa;
    --ki-serif:  var(--display);
    --ki-body:   var(--serif);
    --ki-sans:   var(--sans);
    --nav-animation-speed: 240ms;
    --animation-speed: 150ms;
    --standard-opacity: 1;
}

/* ── Type foundation ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.06rem;
    line-height: 1.7;
    letter-spacing: 0.002em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    font-optical-sizing: auto;
}

h1 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.7rem);
}
h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem) !important;
    color: var(--text);
    padding: 0;
}
h3 {
    font-size: 1.28rem !important;
    padding: 0.4rem 0 0.5rem;
}
h4 { font-size: 1.1rem !important; padding-top: 0.4rem; }
h5 { font-size: 1rem !important; }

p { margin: 0 0 1.05rem; }

/* Keep UI chrome on the clean sans so admin/forms/tables stay crisp */
input, select, textarea, .form-control, .form-select, label,
table, .grid-view, .kv-grid-table, .pagination, .breadcrumb {
    font-family: var(--sans);
}

a {
    color: var(--hv-deep);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s var(--ease);
}
a:hover { color: var(--hv); }

.lead {
    font-family: var(--serif);
    font-size: 1.16rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text);
}

hr.myrule,
.myrule {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 8px 0 !important;
    position: relative;
}
.myrule::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px; height: 7px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--hv);
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--paper);
}

/* Icons inside headings pick up the accent */
h1 i[class*="fa-"], h2 i[class*="fa-"],
h3 i[class*="fa-"], h4 i[class*="fa-"] { color: var(--hv); }

/* scroll anchors clear the fixed navbar */
#beck, #beckterug, #rife, #rifeterug, #straling, #stralingterug,
#violet, #lakhovsky, #meerinfo, #blog {
    scroll-margin-top: 84px;
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
    --bs-navbar-toggler-padding-y: 0.5rem;
    --bs-navbar-brand-margin-end: 0;
}
.fixed-top { z-index: 1030; }

.navbar-meisje {
    background: rgba(20, 16, 28, 0.66);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid rgba(198, 162, 245, 0.12);
    box-shadow: none;
    transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.navbar-meisje.scrolled {
    background: rgba(17, 13, 24, 0.9);
    border-bottom-color: rgba(198, 162, 245, 0.2);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}

a.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: none;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
a.navbar-brand:hover { color: #fff; }
a.navbar-brand .hv-brand-ring { flex: none; display: block; }
a.navbar-brand .hv-brand-ring circle { transition: stroke 0.25s var(--ease); }
a.navbar-brand:hover .hv-brand-ring circle { stroke: var(--hv-glow); }

.navbar .nav-item .nav-link {
    position: relative;
    color: rgba(237, 233, 245, 0.82) !important;
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    padding: 8px 13px !important;
    text-shadow: none;
    transition: color var(--nav-animation-speed) var(--ease);
}
.navbar .nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 13px; right: 13px;
    height: 1.5px;
    background: var(--hv-glow);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--nav-animation-speed) var(--ease);
}
.navbar .nav-item .nav-link:hover { color: #fff !important; }
.navbar .nav-item .nav-link:hover::after,
.navbar .nav-item .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-item .nav-link.active { color: #fff !important; }

/* CTA nav item (last) — outlined violet chip */
.navbar .nav-item:last-child .nav-link {
    color: var(--hv-glow) !important;
    font-weight: 600;
    border: 1px solid rgba(198, 162, 245, 0.4);
    border-radius: 8px;
    margin-left: 6px;
}
.navbar .nav-item:last-child .nav-link:hover {
    background: rgba(198, 162, 245, 0.12);
    color: #fff !important;
}
.navbar .nav-item:last-child .nav-link::after { display: none; }

.navbar-toggler {
    border: 1px solid rgba(198, 162, 245, 0.32) !important;
    border-radius: 8px !important;
    padding: 6px 9px;
    box-shadow: none;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.navbar-toggler:hover { border-color: rgba(198, 162, 245, 0.7) !important; background: rgba(198, 162, 245, 0.08) !important; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler span {
    display: block;
    background-color: #fff;
    height: 2px; width: 24px;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform-origin: center left;
}
.navbar-toggler span:nth-child(1) { margin-top: 0.2em; }
.navbar-toggler:not(.collapsed) span:nth-child(1) { transform: translate(12%, -30%) rotate(45deg); }
.navbar-toggler:not(.collapsed) span:nth-child(2) { opacity: 0; }
.navbar-toggler:not(.collapsed) span:nth-child(3) { transform: translate(12%, 30%) rotate(-45deg); }

.navbar-nav { max-height: 76vh; }
.navbar-nav.nav li.nav-item { margin: 0 1px; border-radius: 8px; }

@keyframes ki-nav-slide-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1199px) {
    .navbar-meisje .navbar-collapse {
        border-top: 1px solid rgba(198, 162, 245, 0.12);
        margin-top: 8px;
        padding-top: 6px;
    }
    .navbar-meisje .navbar-collapse.show .nav-item { animation: ki-nav-slide-in 0.24s var(--ease) both; }
    .navbar-meisje .navbar-collapse.show .nav-item:nth-child(2) { animation-delay: 0.03s; }
    .navbar-meisje .navbar-collapse.show .nav-item:nth-child(3) { animation-delay: 0.06s; }
    .navbar-meisje .navbar-collapse.show .nav-item:nth-child(4) { animation-delay: 0.09s; }
    .navbar-meisje .navbar-collapse.show .nav-item:nth-child(5) { animation-delay: 0.12s; }
    .navbar-meisje .navbar-collapse.show .nav-item:nth-child(6) { animation-delay: 0.15s; }
    .navbar .nav-item .nav-link { padding: 11px 14px !important; }
    .navbar .nav-item .nav-link::after { display: none; }
    .navbar .nav-item:last-child .nav-link { display: inline-block; margin: 8px 0 4px; }
}

/* =====================================================================
   HERO — the one bold moment
   ===================================================================== */
.hv-hero {
    position: relative;
    min-height: clamp(560px, 100svh, 880px);
    display: flex;
    align-items: center;
    background: var(--ink);
    overflow: hidden;
}
.fullWidthNoBackground { /* legacy wrapper, kept harmless */
    position: relative;
    width: 100%;
    background: var(--ink);
}

#video-background {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hv-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(90% 70% at 12% 88%, rgba(107, 47, 214, 0.30) 0%, transparent 58%),
        linear-gradient(185deg, rgba(23, 19, 31, 0.68) 0%, rgba(23, 19, 31, 0.44) 38%, rgba(23, 19, 31, 0.88) 100%);
    pointer-events: none;
}
/* faint engineer's grid, barely there */
.hv-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(198, 162, 245, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 162, 245, 0.05) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(120% 100% at 10% 90%, #000 0%, transparent 62%);
    mask-image: radial-gradient(120% 100% at 10% 90%, #000 0%, transparent 62%);
    pointer-events: none;
}

.hv-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 140px 0 96px;
}

.hv-hero__title {
    font-family: var(--display);
    font-weight: 600;
    color: #fff;
    font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 0 26px;
    text-shadow: 0 2px 30px rgba(10, 6, 18, 0.55);
}

.hv-hero__signal {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 26px;
}
.hv-hero__wave { display: block; width: min(340px, 60%); height: 34px; overflow: visible; }
.hv-hero__wave path {
    fill: none;
    stroke: url(#hvWaveGrad);
    stroke-width: 2;
    stroke-linecap: round;
}
.hv-hero__rings { flex: none; display: block; }
.hv-hero__rings circle { fill: none; stroke: var(--hv-glow); stroke-width: 1.4; }

.hv-hero__lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    line-height: 1.62;
    max-width: 46ch;
    margin: 0 0 34px;
    text-shadow: 0 1px 16px rgba(10, 6, 18, 0.6);
}

.hv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
}
.hv-hero__ghost {
    color: #fff;
    font-family: var(--display);
    font-weight: 500;
    font-size: 0.98rem;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 12px rgba(10, 6, 18, 0.6);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hv-hero__ghost:hover { color: var(--hv-glow); border-color: var(--hv-glow); }

.hv-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 1px; height: 46px;
    background: linear-gradient(to bottom, transparent, rgba(198, 162, 245, 0.7));
    overflow: visible;
}
.hv-hero__scroll::after {
    content: '';
    position: absolute;
    left: 50%; top: 0;
    width: 5px; height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--hv-glow);
    animation: hv-scroll 2.4s var(--ease) infinite;
}
@keyframes hv-scroll {
    0%   { transform: translateY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: translateY(42px); opacity: 0; }
}

/* one orchestrated load sequence */
@keyframes hv-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hv-draw { to { stroke-dashoffset: 0; } }

.hv-hero__title { animation: hv-rise 0.7s var(--ease) both; }
.hv-hero__signal { animation: hv-rise 0.7s var(--ease) 0.14s both; }
.hv-hero__lead { animation: hv-rise 0.7s var(--ease) 0.24s both; }
.hv-hero__actions { animation: hv-rise 0.7s var(--ease) 0.34s both; }

.hv-hero__wave path {
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: hv-draw 1s var(--ease) 0.3s forwards;
}
.hv-hero__rings circle {
    stroke-dasharray: 132;
    stroke-dashoffset: 132;
    animation: hv-draw 0.8s var(--ease) forwards;
}
.hv-hero__rings circle:nth-child(1) { animation-delay: 0.40s; }
.hv-hero__rings circle:nth-child(2) { animation-delay: 0.54s; }
.hv-hero__rings circle:nth-child(3) { animation-delay: 0.68s; }

@media (max-width: 767px) {
    .hv-hero { min-height: clamp(520px, 90svh, 760px); }
    .hv-hero__inner { padding: 116px 0 84px; }
    .hv-hero__lead { font-size: 1.08rem; }
    .hv-hero__wave { width: 62%; }
}

/* =====================================================================
   TOPIC SECTIONS
   ===================================================================== */
.hv-sec {
    padding: 62px 0;
    border-top: 1px solid var(--line);
}
.hv-sec:first-of-type { border-top: 0; }

.hv-sec__head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.hv-sec__mark {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--hv);
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 0 5px rgba(107, 47, 214, 0.06);
}
.hv-sec__head h1 { margin: 0; }
.hv-sec .row { align-items: start; }
.hv-sec .row + .row { margin-top: 8px; }
.hv-sec p:last-child { margin-bottom: 0; }

@media (max-width: 575px) {
    .hv-sec { padding: 44px 0; }
    .hv-sec__head { align-items: flex-start; gap: 13px; }
    .hv-sec__mark { width: 40px; height: 40px; font-size: 1.05rem; }
    .hv-sec__head h1 { padding-top: 2px; }
    .hv-sec .col-lg-6 + .col-lg-6 { margin-top: 22px; }
}

/* dark panel — used once, for Violet Ray */
.hv-sec--dark {
    position: relative;
    background: var(--ink);
    color: var(--text-on-dark);
    border-top: 0;
    overflow: hidden;
}
.hv-sec--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 120% at 85% 15%, rgba(107, 47, 214, 0.34) 0%, transparent 55%);
    pointer-events: none;
}
.hv-sec--dark > .container { position: relative; z-index: 1; }
.hv-sec--dark h1, .hv-sec--dark h2, .hv-sec--dark h3, .hv-sec--dark h4 { color: #fff; }
.hv-sec--dark p, .hv-sec--dark li, .hv-sec--dark .lead { color: var(--text-on-dark-soft); }
.hv-sec--dark .lead { color: var(--text-on-dark); }
.hv-sec--dark .hv-sec__mark {
    color: var(--hv-glow);
    border-color: var(--ink-line);
    box-shadow: 0 0 0 5px rgba(198, 162, 245, 0.08);
}
.hv-sec--dark a:not(.btn) {
    color: var(--hv-glow);
    border-bottom: 1px solid rgba(198, 162, 245, 0.4);
}
.hv-sec--dark a:not(.btn):hover { color: #fff; border-color: var(--hv-glow); }

/* legacy full-width band classes → quiet fallback (not used on redesigned pages) */
.fullWidthBackground, .fullWidthBackground2, .fullWidthBackground3 {
    position: relative;
    width: 100%;
    padding: 10px 0 20px;
    background: var(--paper-3);
}

.opsomming li { padding: 0.7em 0; font-size: 1.05em; }

/* Back-to-top ghost */
.ki-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--hv) !important;
    background: var(--paper-2);
    font-size: 12px;
    text-decoration: none !important;
    float: right;
    box-shadow: none !important;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ki-back-to-top:hover { border-color: var(--hv); transform: translateY(-2px); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 9px;
    padding: 0.55rem 1.15rem;
    margin: 8px 0;
    transition: transform 0.16s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-lg { padding: 0.72rem 1.5rem; font-size: 1.02rem; }

.btn-warning, .btn-primary {
    background: var(--hv);
    border: 1px solid var(--hv-deep);
    color: #fff;
    box-shadow: 0 4px 14px rgba(107, 47, 214, 0.2);
}
.btn-warning:hover, .btn-primary:hover,
.btn-warning:focus-visible, .btn-primary:focus-visible {
    background: var(--hv-deep);
    border-color: var(--hv-deep);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(107, 47, 214, 0.32);
}
.btn-warning:active, .btn-primary:active {
    background: var(--hv-deep) !important;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(107, 47, 214, 0.3);
}

.btn-dark {
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
    color: #fff;
}
.btn-dark:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline-light,
.hv-btn-ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.hv-btn-ghost:hover { border-color: var(--hv); color: var(--hv-deep); }

.btn:focus-visible { outline: 2px solid var(--hv); outline-offset: 2px; }

/* =====================================================================
   ARTICLE LIST — editorial (homepage + blog)
   ===================================================================== */
.hv-articles { padding-top: 60px; padding-bottom: 12px; }

.hv-articles__head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.hv-articles__head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem) !important;
}
.hv-articles__head h2 a { color: var(--text); }
.hv-articles__head h2 a:hover { color: var(--hv-deep); }
.hv-articles__head .hv-rule { flex: 1; height: 1px; background: transparent; }
.hv-articles__all {
    font-family: var(--display);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--hv-deep);
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.hv-articles__all:hover { border-color: var(--hv); }

.hv-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 26px;
}
.hv-article-grid .hv-art__title { min-height: 2.56em; }
@media (max-width: 560px) {
    .hv-article-grid .hv-art__title { min-height: 0; }
}
@media (max-width: 900px) { .hv-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hv-article-grid { grid-template-columns: 1fr; } }

.hv-art {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
}
.hv-art__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-3);
    border: 1px solid var(--line);
    display: block;
}
.hv-art__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease);
}
.hv-art:hover .hv-art__media img { transform: scale(1.04); }
.hv-art__media--empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--hv);
    opacity: 0.45;
    font-size: 1.7rem;
}
.hv-art__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hv-art__title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.16rem;
    line-height: 1.28;
    letter-spacing: -0.015em;
    margin: 16px 0 0;
    padding-bottom: 8px;
    position: relative;
}
.hv-art__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 26px; height: 2px;
    background: var(--hv);
    transition: width 0.32s var(--ease);
}
.hv-art:hover .hv-art__title::after { width: 64px; }
.hv-art__lead {
    font-family: var(--serif);
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* featured (first article on the homepage) */
.hv-art--featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 34px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.hv-art--featured .hv-art__media { aspect-ratio: 3 / 2; align-self: stretch; }
.hv-art--featured .hv-art__title {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
    margin-top: 0;
}
.hv-art--featured .hv-art__lead {
    font-size: 1.05rem;
    -webkit-line-clamp: 4;
    margin-top: 16px;
}
.hv-art__more {
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--hv-deep);
    margin-top: 18px;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.hv-art--featured:hover .hv-art__more { border-color: var(--hv); }
@media (max-width: 780px) {
    .hv-art--featured { grid-template-columns: 1fr; gap: 20px; }
}

/* =====================================================================
   PAGE HEADER (contact + titled admin pages) + BLOG HEADER
   ===================================================================== */
.ki-page-header,
.hv-page-head {
    position: relative;
    width: 100%;
    padding: 112px 0 46px;
    background: linear-gradient(180deg, #140f1d 0%, #1d1729 60%, #17131f 100%);
    border-bottom: 1px solid var(--ink-line);
    overflow: hidden;
}
.ki-page-header::before,
.hv-page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 120% at 88% 0%, rgba(107, 47, 214, 0.28) 0%, transparent 55%);
    pointer-events: none;
}
.ki-page-header-overlay { display: none; }
.ki-page-header-inner,
.hv-page-head__inner {
    position: relative;
    z-index: 2;
    text-align: left;
}

/* ring glyph replaces the old line-dot-line ornament */
.ki-page-header-ornament,
.hv-ring-glyph {
    display: block;
    width: 30px; height: 30px;
    margin: 0 0 16px;
    border-radius: 50%;
    border: 1px solid var(--hv-glow);
    box-shadow: 0 0 0 5px rgba(198, 162, 245, 0.12), inset 0 0 0 4px rgba(198, 162, 245, 0.14);
}
.ki-page-header-orn-line, .ki-page-header-orn-dot { display: none; }

.ki-page-header-title,
.hv-page-head__title {
    font-family: var(--display);
    font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem) !important;
    font-weight: 600;
    color: #fff !important;
    text-shadow: none;
    margin: 0 !important;
    letter-spacing: -0.03em;
    line-height: 1.06;
}
.ki-page-header-title i[class*="fa-"],
.hv-page-head__title i[class*="fa-"] {
    color: var(--hv-glow) !important;
    font-size: 0.72em;
    margin-right: 0.15em;
    vertical-align: 0.06em;
}
.hv-page-head__sub {
    color: var(--text-on-dark-soft);
    font-size: 1.05rem;
    margin: 14px 0 0;
    max-width: 52ch;
}

.ki-page-header-btns {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ki-page-header .alert {
    max-width: 560px;
    margin: 20px 0 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(198, 162, 245, 0.3);
    color: var(--text-on-dark);
    backdrop-filter: blur(8px);
}
@media (max-width: 768px) {
    .ki-page-header, .hv-page-head { padding-top: 104px; padding-bottom: 34px; }
}

/* =====================================================================
   CARDS / PANELS on paper (contact page, misc)
   ===================================================================== */
.whiteBg {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    margin: 18px 0;
    padding: 26px 28px;
}
.row.whiteBg { margin-left: 0; margin-right: 0; }
.site-contact { padding-top: 34px; padding-bottom: 40px; }
.site-contact .alert-success { margin-top: 28px; }
.whiteBgNoShadow {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0;
    padding: 18px;
}
.startvak {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-1);
}
.prijs {
    font-family: var(--display);
    color: var(--hv-deep);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 8px;
}

/* carousel imagery */
.featurette-image, .mycarousel {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    overflow: hidden;
}
.rounded-image { border-radius: var(--radius-sm); }
.carousel-plaatje {
    padding: 3px;
    border-radius: var(--radius-sm);
    margin: 5px;
    border: 1px solid var(--line);
    cursor: pointer;
    box-shadow: var(--shadow-1);
}
.carousel-control-prev-icon, .carousel-control-next-icon { filter: drop-shadow(0 0 2px #000); }

/* =====================================================================
   FOOTER
   ===================================================================== */
#footer {
    background: var(--ink) !important;
    border-top: 1px solid var(--ink-line);
    color: var(--text-on-dark-soft) !important;
    padding: 24px 0 !important;
}
#footer .col-md-12 { color: var(--text-on-dark-soft); }
#footer a { color: var(--hv-glow) !important; font-weight: 500; }
#footer a:hover { color: #fff !important; }
.footer { background: var(--ink); font-size: 0.9em; }

/* =====================================================================
   LANGUAGE SWITCHER (navbar segmented pill)
   ===================================================================== */
.ki-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 6px 0 6px 12px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    vertical-align: middle;
}
.ki-lang-switch .ki-lang-opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 11px;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: background-color 0.22s var(--ease), color 0.22s var(--ease);
}
.ki-lang-switch .ki-lang-opt:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.ki-lang-switch .ki-lang-opt.active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.ki-lang-switch .ki-lang-opt.active:hover { background: #fff; color: var(--ink); }
@media (max-width: 1199px) { .ki-lang-switch { margin: 12px 0 6px; } }

/* =====================================================================
   MOTION PREFERENCES
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hv-hero__wave path, .hv-hero__rings circle { stroke-dashoffset: 0 !important; }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   LEGACY UTILITIES  — admin / CRUD / forms / tables / dialogs.
   Carried forward from the previous stylesheet, re-pointed at the new
   tokens. Public pages do not depend on these.
   ===================================================================== */
.bio { color: var(--text-soft); font-size: 0.9rem; }
.center { display: flex; justify-content: center; align-items: center; text-align: center; }
.centerText { text-align: center; line-height: 40px; }
.door { color: var(--text-soft); }
.rond { border-radius: 200px !important; border: 1px solid var(--line-strong); width: 100px; float: left; padding: 3px; margin: 10px 10px 0 0; }
.myhover, .helpIcon { cursor: pointer; }
.helpIcon { float: right; }
.bold, .lead.bold { font-weight: 700; }
.nowrap, .no-wrap { white-space: nowrap; }
.helvetica { font-family: var(--sans); }
.lightlink { font-weight: 400; }
.margin-top-fix { margin-top: 10px; }
.nomargin { margin-bottom: 0; }
.lineHeightFix { line-height: 40px; }
.smallfont { font-size: 12px; float: right; margin: -10px 0 0; }
.smallTd { width: 10px; }
.site-index { margin-top: 10px; }

.quote { font-size: 1.15rem; padding: 20px; font-family: var(--serif); font-weight: 600; color: var(--hv-deep); }

.whiteTrBg { background: rgba(33, 26, 46, 0.6); border: 1px solid var(--ink-line); backdrop-filter: blur(7px); color: #fff !important; }

.form-check { margin-bottom: 0.625rem; }
.form-group { margin-bottom: 1rem; }
.control-label { margin-top: 5px; color: var(--text-soft); font-weight: 700; }
.help-block { color: #c0392b; font-weight: 700; }
.hint-block { display: block; margin-top: 5px; color: #999; }
.error-summary { color: #a94442; background: #fdf7f7; border-left: 3px solid #eed3d7; padding: 10px 20px; margin: 0 0 15px; }
.form-control.ro { background: var(--paper-3) !important; color: var(--text-soft) !important; border: 1px solid var(--line-strong); }
.ui-autocomplete-input {
    display: block; width: 100%; padding: 0.375rem 0.75rem;
    font-size: 1rem; line-height: 1.5; color: var(--bs-body-color);
    appearance: none; background: var(--bs-body-bg); background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color); border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-check-input:checked { background-color: var(--hv); border-color: var(--hv); }

.form-switch.form-switch-sm { margin-bottom: 0.5rem; }
.form-switch.form-switch-sm .form-check-input { height: 1rem; width: calc(1rem + 0.75rem); border-radius: 2rem; }
.form-switch.form-switch-md .form-check-input { height: 1.5rem; width: calc(2rem + 0.75rem); border-radius: 3rem; }
.form-switch.form-switch-lg { margin-bottom: 1.5rem; }
.form-switch.form-switch-lg .form-check-input { height: 2rem; width: calc(3rem + 0.75rem); border-radius: 4rem; }
.form-switch.form-switch-xl { margin-bottom: 2rem; }
.form-switch.form-switch-xl .form-check-input { height: 2.5rem; width: calc(4rem + 0.75rem); border-radius: 5rem; }

.table-dark { --bs-table-striped-bg: #2c2340 !important; }
.table-bordered.table-striped, .table-bordered.table-striped th,
.table-bordered.table-striped tr, .table-bordered.table-striped td { border: 0 !important; }
.table-bordered.table-striped tr { user-select: none; }
tr.green td { background: #e6f0e6; }
.table tbody tr.table-more-danger { background: #d33 !important; color: #fff !important; }
.headerfortable { white-space: nowrap; font-weight: 700; background: var(--paper-3); }
.grid-view th { white-space: nowrap; }
.kv-grid-table { border-radius: 12px; border-collapse: collapse; width: 100%; overflow: hidden; }
.table-rounded { border-collapse: collapse; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1); }
a.asc:after, a.desc:after { content: ''; left: 3px; display: inline-block; width: 0; height: 0; border: solid 5px transparent; margin: 4px; background: transparent; }
a.asc:after { border-bottom: solid 7px var(--text); border-top-width: 0; }
a.desc:after { border-top: solid 7px var(--text); border-bottom-width: 0; }

ul > li.page-item.active > a { background: var(--hv); border: 1px solid var(--hv); color: #fff; }
ul > li.page-item > a { color: var(--hv-deep); border: 1px solid var(--line-strong); }
.page-link:hover { background: var(--hv); color: #fff; border: 1px solid var(--hv); transition: all var(--animation-speed); }

.not-set { color: #c55; font-style: italic; }
.smallfont { font-size: 12px; }

.overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, 0.7); }
.overlay:target { visibility: visible; opacity: 1; }
.popup { margin: 50px auto; padding: 20px; background: #fff; border-radius: var(--radius-sm); width: 40%; position: relative; overflow: auto; max-height: 80%; }
.popup h2 { margin-top: 0; color: #333; }
.popup .close { position: absolute; top: 10px; right: 20px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 10px; font-size: 30px; font-weight: 700; text-decoration: none; color: #333; transition: color 0.2s; }
.popup .close:hover { color: var(--hv); }
.popup .content { max-height: 30%; overflow: auto; }
@media screen and (max-width: 1200px) { .popup { width: 90%; } }

#overlay { background: rgba(0, 0, 0, 0.8); z-index: 99999; position: absolute; left: 0; top: 0; width: 100%; height: 200%; display: none; }

.bootstrap-dialog .btn-modal-close { border-radius: unset; box-shadow: unset; }
.bootstrap-dialog-title { width: 400px; }
.modal-header.bootstrap-dialog-header { padding: 2px 10px; }
.bootstrap-dialog-close-button { width: -webkit-fill-available; text-align: end; }

.alert { box-shadow: var(--shadow-1); backdrop-filter: blur(6px); border-radius: var(--radius-sm); }
.successTransparant { background: rgba(209, 231, 221, 0.6); }
.warningTransparant { background: rgba(255, 243, 205, 0.6); }
.infoTransparant  { background: rgba(207, 244, 252, 0.6); }
.lightTransparant { background: rgba(252, 252, 253, 0.6); }

.keeptogether { display: flex; }
.keeptogether a.btn.btn-dark { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.keeptogether a.btn.btn-light { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.switchButton { padding: 5px; color: #fff; margin-right: 10px; }

.neus { color: #ec0083; background: #fff; border-radius: 5px; padding: 5px; font-weight: 700; }
.call { padding: 5px; background: #fff; color: darkblue; border-radius: 5px; border: 1px solid darkred; }
.yellow { padding: 5px; color: #ff0; border-radius: 5px; font-weight: 700; background: #000; }
.filter-pink { filter: invert(14%) sepia(83%) saturate(7335%) hue-rotate(317deg) brightness(90%) contrast(113%); }

@keyframes blinker { 10% { opacity: 0.6; } }
@keyframes blinker1 {
    0%, 37% { opacity: 1; transform: scale(1); }
    40% { opacity: 0.6; transform: scale(1.15); }
    43%, 49%, 55%, 60%, 66% { opacity: 1; transform: scale(1); }
    46% { opacity: 0.6; transform: scale(1.35); }
    52% { opacity: 0.6; transform: scale(1.5); }
    57% { opacity: 0.6; transform: scale(1.35); }
    63% { opacity: 0.6; transform: scale(1.15); }
}
.dotransition { animation: blinker 1s linear infinite; }
.dofasttransition { animation: blinker 500ms linear infinite; }
#actiefRow { font-weight: 700; font-size: calc(1.275rem + 0.3vw); line-height: 1.5; animation: blinker1 8s linear infinite; }
#actiefRow td { background: #90ff90 !important; }

.oleo-script { font-family: "Oleo Script Swash Caps", var(--display); font-weight: 700; }

.row, .table, .btn { opacity: var(--standard-opacity); }
.bg-body-secondary { background: var(--paper-3); }
.bg-body-tertiary { background: #e8fdff; }
.featurette-divider { border-top: 1px solid var(--line); width: 80%; margin: 40px auto !important; }

/* background carousel — contact page (params['animatedBg']) */
.backgroundCarousel { z-index: -99; }
.backgroundCarouselItem {
    position: fixed;
    width: 100%; height: 100%;
    transition: opacity 1s;
}
.backgroundOne { background: url(../images/background2.jpg) center / cover; }
.backgroundTwo { background: url(../images/background3.jpg) center / cover; }
