/* Klantportaal (alleen geladen op /klantportaal/ en /klantportaal/inloggen/) ---------------
   Zwart/wit, accent palette1 (#00ffb8), geen ronde hoeken, zoals de rest van de site. */

.rbh-kp { --rbh-kp-lijn: var(--global-palette7, #e5e5e5); font-size: 18px; line-height: 1.5; }
.rbh-kp h2, .rbh-kp h3, .rbh-kp h4, .rbh-kp h5 { letter-spacing: -0.045em; }
.rbh-kp a:focus-visible, .rbh-kp button:focus-visible, .rbh-kp input:focus-visible, .rbh-kp textarea:focus-visible {
	outline: 3px solid #000; outline-offset: 3px; box-shadow: 0 0 0 6px var(--global-palette1);
}

/* Balk met ingelogde gebruiker */
.rbh-kp .rbh-kp__balk { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 30px; padding-bottom: 18px; margin-bottom: 50px; border-bottom: 1px solid #000; font-size: 17px; }
.rbh-kp .rbh-kp__balk p { margin: 0; }
.rbh-kp .rbh-kp__kop { font-size: clamp(28px, 2.6vw, 44px); line-height: 1; font-weight: 800; margin: 0 0 30px; }

/* Meldingen */
.rbh-kp .rbh-kp-melding { padding: 16px 20px; margin: 0 0 30px; background: var(--global-palette8, #f4f4f4); border-left: 6px solid var(--global-palette1); font-size: 17px; }
.rbh-kp .rbh-kp-melding.is-fout { border-left-color: #b82105; }

/* Overzicht: kaarten */
.rbh-kp .rbh-kp-groep + .rbh-kp-groep { margin-top: 80px; }
.rbh-kp .rbh-kp-kaarten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--rbh-gutter, 25px); }
.rbh-kp .rbh-kp-kaart { position: relative; margin: 0; padding: 28px; border: 1px solid #000; display: grid; gap: 18px; align-content: start; transition: background .2s; }
.rbh-kp .rbh-kp-kaart:hover, .rbh-kp .rbh-kp-kaart:focus-within { background: var(--global-palette8, #f4f4f4); }
.rbh-kp .rbh-kp-kaart__fase { margin: 0; font-size: 15px; font-weight: 500; }
.rbh-kp .rbh-kp-kaart__titel { margin: 0; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; font-weight: 800; }
.rbh-kp .rbh-kp-kaart__titel a { color: inherit; text-decoration: none; }
.rbh-kp .rbh-kp-kaart__titel a::after { content: ""; position: absolute; inset: 0; } /* hele kaart klikbaar */
.rbh-kp .rbh-kp-kaart__titel a:hover, .rbh-kp .rbh-kp-kaart__titel a:focus-visible { text-decoration: underline; text-decoration-color: var(--global-palette1); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.rbh-kp .rbh-kp-kaart__meta { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-kaart__meta .is-actie { color: #000; font-weight: 600; display: flex; align-items: center; gap: .5em; }
.rbh-kp .rbh-kp-kaart__meta .is-actie::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--global-palette1); box-shadow: 0 0 0 1px #000; }

/* Voortgangsbalk */
.rbh-kp .rbh-kp-voortgang__kop { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.rbh-kp .rbh-kp-voortgang progress { display: block; width: 100%; height: 10px; border: 1px solid #000; border-radius: 0; background: #fff; -webkit-appearance: none; appearance: none; }
.rbh-kp .rbh-kp-voortgang progress::-webkit-progress-bar { background: #fff; }
.rbh-kp .rbh-kp-voortgang progress::-webkit-progress-value { background: #000; }
.rbh-kp .rbh-kp-voortgang progress::-moz-progress-bar { background: #000; }

/* Detail */
.rbh-kp .rbh-kp-terug { margin: 0 0 30px; font-size: 17px; font-weight: 500; }
.rbh-kp .rbh-kp-terug a { color: inherit; text-decoration: none; }
.rbh-kp .rbh-kp-terug a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rbh-kp .rbh-kp-project__titel { font-size: clamp(40px, 5vw, 80px); line-height: .95; font-weight: 800; margin: 0 0 40px; }
.rbh-kp .rbh-kp-fasen { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; counter-reset: fase; }
.rbh-kp .rbh-kp-fasen li { counter-increment: fase; margin: 0; padding: 14px 0 0; border-top: 4px solid var(--rbh-kp-lijn); font-size: 15px; font-weight: 500; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-fasen li::before { content: counter(fase, decimal-leading-zero) " "; }
.rbh-kp .rbh-kp-fasen li.is-klaar { border-top-color: #000; color: #000; }
.rbh-kp .rbh-kp-fasen li.is-huidig { border-top-color: var(--global-palette1); color: #000; font-weight: 700; }
.rbh-kp .rbh-kp-project__info { display: grid; grid-template-columns: 2fr 1fr; gap: 20px 60px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid #000; }
.rbh-kp .rbh-kp-gegevens { display: flex; flex-wrap: wrap; gap: 20px 50px; margin: 0; }
.rbh-kp .rbh-kp-gegevens dt { font-size: 15px; font-weight: 500; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-gegevens dd { margin: 0; font-size: 22px; font-weight: 600; }
.rbh-kp .rbh-kp-update { margin: 40px 0 0; padding: 28px; background: #000; color: #fff; }
.rbh-kp .rbh-kp-update h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #fff; }
.rbh-kp .rbh-kp-update h3 span { font-weight: 400; font-size: 15px; color: var(--global-palette6, #bfbfbf); margin-left: .5em; letter-spacing: 0; }
.rbh-kp .rbh-kp-update p { margin: 0; font-size: clamp(19px, 1.4vw, 22px); line-height: 1.45; }
.rbh-kp .rbh-kp-proeven { margin-top: 80px; }

/* Proef */
.rbh-kp .rbh-kp-proef { padding: 40px 0; border-top: 1px solid #000; display: grid; gap: 22px; }
.rbh-kp .rbh-kp-proef__kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.rbh-kp .rbh-kp-proef__kop h4 { margin: 0; font-size: clamp(24px, 2vw, 32px); font-weight: 800; flex: 1 1 auto; }
.rbh-kp .rbh-kp-proef__datum { margin: 0; font-size: 15px; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-badge { margin: 0; padding: 4px 10px; font-size: 14px; font-weight: 600; border: 1px solid #000; }
.rbh-kp .rbh-kp-badge.is-wacht { background: var(--global-palette1); }
.rbh-kp .rbh-kp-badge.is-akkoord { background: #000; color: #fff; }
.rbh-kp .rbh-kp-proef__beeld { margin: 0; background: var(--global-palette8, #f4f4f4); padding: var(--rbh-gutter, 25px); }
.rbh-kp .rbh-kp-proef__beeld img { display: block; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.rbh-kp .rbh-kp-proef__beeld figcaption { margin-top: 14px; }
.rbh-kp .rbh-kp-proef__pdf, .rbh-kp .rbh-kp-proef__toelichting p { margin: 0; }
.rbh-kp a.rbh-bullet { color: #000 !important; }

/* Formulier */
.rbh-kp .rbh-kp-form fieldset { margin: 0; padding: 24px; border: 1px solid #000; display: grid; gap: 14px; }
.rbh-kp .rbh-kp-form legend { padding: 0 8px; margin-left: -8px; font-weight: 700; font-size: 18px; }
.rbh-kp .rbh-kp-form__keuzes { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.rbh-kp .rbh-kp-form__keuzes label { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; font-weight: 500; }
.rbh-kp .rbh-kp-form input[type="radio"] { width: 20px; height: 20px; accent-color: #000; margin: 0; }
.rbh-kp .rbh-kp-form__label { font-weight: 500; }
.rbh-kp .rbh-kp-form__label span { font-weight: 400; color: var(--global-palette5, #6b6b6b); font-size: 15px; }
.rbh-kp textarea, .rbh-kp.rbh-kp-login input[type="text"], .rbh-kp.rbh-kp-login input[type="password"] {
	width: 100%; border: 1px solid #000; border-radius: 0; padding: 12px 14px; font: inherit; background: #fff; color: #000;
}
.rbh-kp .rbh-kp-knop, .rbh-kp.rbh-kp-login .button-primary, .rbh-kp.rbh-kp-login input[type="submit"] {
	justify-self: start; padding: 14px 26px; border: 1px solid #000; border-radius: 0; background: #000; color: #fff;
	font: inherit; font-weight: 500; cursor: pointer; transition: background .2s, color .2s;
}
.rbh-kp .rbh-kp-knop:hover, .rbh-kp.rbh-kp-login input[type="submit"]:hover { background: var(--global-palette1); color: #000; }

/* Historie */
.rbh-kp .rbh-kp-historie h5 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.rbh-kp .rbh-kp-historie ol { list-style: none; margin: 0; padding: 0; }
.rbh-kp .rbh-kp-historie li { margin: 0; padding: 12px 0; border-top: 1px solid var(--rbh-kp-lijn); font-size: 16px; }
.rbh-kp .rbh-kp-historie li p { margin: 0; }
.rbh-kp .rbh-kp-historie__kop { color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-historie__kop strong { color: #000; }

/* Loginformulier */
.rbh-kp.rbh-kp-login { max-width: 520px; margin-bottom: 40px; }
.rbh-kp.rbh-kp-login form p { margin: 0 0 18px; }
.rbh-kp.rbh-kp-login label { display: block; font-weight: 500; margin-bottom: 6px; }
.rbh-kp.rbh-kp-login .login-remember label { display: inline-flex; align-items: center; gap: .5em; font-weight: 400; }
.rbh-kp.rbh-kp-login .login-remember input { width: 20px; height: 20px; accent-color: #000; margin: 0; }
.rbh-kp .rbh-kp-login__vergeten { margin-top: 10px; }

@media (max-width: 767px) {
	.rbh-kp .rbh-kp-fasen { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
	.rbh-kp .rbh-kp-project__info { grid-template-columns: 1fr; }
	.rbh-kp .rbh-kp-kaart, .rbh-kp .rbh-kp-form fieldset, .rbh-kp .rbh-kp-update { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.rbh-kp .rbh-kp-kaart { transition: none; }
}

/* Theme-marges (.entry-content h2/h3/ul/p) neutraliseren binnen het portaal */
.rbh-kp ul, .rbh-kp ol { margin-left: 0; }
.rbh-kp .rbh-kp-kaart > * { margin-top: 0; margin-bottom: 0; }

/* Tijdlijn ---------------------------------------------------------------------
   Middenlijn met items om en om links/rechts; op mobiel één kolom met de lijn links. */
.rbh-kp .rbh-kp-tijdlijn { margin-top: 80px; }
.rbh-kp .rbh-kp-tl { --rbh-tl-lijn: 2px; --rbh-tl-punt: 14px; position: relative; list-style: none; margin: 0; padding: 10px 0; }
.rbh-kp .rbh-kp-tl::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--rbh-tl-lijn); margin-left: calc(var(--rbh-tl-lijn) / -2); background: #000; }
.rbh-kp .rbh-kp-tl__item { position: relative; width: calc(50% - 36px); margin: 0 0 28px; }
.rbh-kp .rbh-kp-tl__item:nth-child(odd) { margin-right: auto; }
.rbh-kp .rbh-kp-tl__item:nth-child(even) { margin-left: auto; }
/* Punt op de lijn */
.rbh-kp .rbh-kp-tl__item::before { content: ""; position: absolute; top: 26px; width: var(--rbh-tl-punt); height: var(--rbh-tl-punt); border-radius: 50%; background: #000; border: 3px solid #fff; box-shadow: 0 0 0 1px #000; }
.rbh-kp .rbh-kp-tl__item:nth-child(odd)::before { right: calc(-36px - var(--rbh-tl-punt) / 2); }
.rbh-kp .rbh-kp-tl__item:nth-child(even)::before { left: calc(-36px - var(--rbh-tl-punt) / 2); }
.rbh-kp .rbh-kp-tl__item.is-bezig::before { background: var(--global-palette1, #00ffb8); animation: rbh-kp-puls 1.8s ease-out infinite; }
@keyframes rbh-kp-puls {
	0% { box-shadow: 0 0 0 1px #000, 0 0 0 0 rgba(0, 255, 184, .7); }
	70% { box-shadow: 0 0 0 1px #000, 0 0 0 12px rgba(0, 255, 184, 0); }
	100% { box-shadow: 0 0 0 1px #000, 0 0 0 0 rgba(0, 255, 184, 0); }
}
.rbh-kp .rbh-kp-tl__kaart { border: 1px solid #000; padding: 20px 22px; background: #fff; display: grid; gap: 12px; }
.rbh-kp .rbh-kp-tl__item.is-bezig .rbh-kp-tl__kaart { border-left: 6px solid var(--global-palette1, #00ffb8); }
.rbh-kp .rbh-kp-tl__wie { display: flex; align-items: center; gap: 14px; }
.rbh-kp .rbh-kp-tl__wie p { margin: 0; display: grid; line-height: 1.25; }
.rbh-kp .rbh-kp-tl__foto { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #000; }
.rbh-kp .rbh-kp-tl__initialen { display: grid; place-items: center; color: var(--global-palette1, #00ffb8); font-weight: 800; font-size: 18px; letter-spacing: 0; }
.rbh-kp .rbh-kp-tl__naam { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.rbh-kp .rbh-kp-tl__titel { font-size: 15px; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-tl__actie { margin: 0; font-size: 17px; line-height: 1.45; }
.rbh-kp .rbh-kp-tl__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--global-palette5, #6b6b6b); }
.rbh-kp .rbh-kp-tl__aantal { font-variant-numeric: tabular-nums; }
.rbh-kp .rbh-kp-tl__status { margin-left: auto; padding: 3px 10px; border: 1px solid #000; color: #000; font-weight: 600; }
.rbh-kp .is-bezig .rbh-kp-tl__status { background: var(--global-palette1, #00ffb8); }
.rbh-kp .is-afgerond .rbh-kp-tl__status { background: #000; color: #fff; }

@media (max-width: 767px) {
	.rbh-kp .rbh-kp-tl::before { left: 7px; margin-left: 0; }
	.rbh-kp .rbh-kp-tl__item, .rbh-kp .rbh-kp-tl__item:nth-child(odd), .rbh-kp .rbh-kp-tl__item:nth-child(even) { width: auto; margin: 0 0 22px 32px; }
	.rbh-kp .rbh-kp-tl__item:nth-child(odd)::before, .rbh-kp .rbh-kp-tl__item:nth-child(even)::before { left: calc(-32px + 8px - var(--rbh-tl-punt) / 2); right: auto; }
	.rbh-kp .rbh-kp-tl__kaart { padding: 16px; }
	.rbh-kp .rbh-kp-tl__status { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rbh-kp .rbh-kp-tl__item.is-bezig::before { animation: none; }
}

/* Portaalomgeving: eigen balk en voet i.p.v. de sitenavigatie (body.rbh-kp-omgeving) ---------------- */
.rbh-kp-kop { background: #000; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.rbh-kp-kop__in { max-width: var(--global-content-width, 1880px); margin: 0 auto; padding: 18px var(--global-content-edge-padding, 25px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 30px; }
.rbh-kp-merk { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 .6em; color: #fff; text-decoration: none; }
.rbh-kp-merk__naam { font-size: clamp(22px, 2vw, 30px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; text-transform: lowercase; }
.rbh-kp-merk__sub { font-size: 17px; font-weight: 500; color: var(--global-palette1, #00ffb8); letter-spacing: 0; }
.rbh-kp-merk:hover .rbh-kp-merk__naam, .rbh-kp-merk:focus-visible .rbh-kp-merk__naam { color: var(--global-palette1, #00ffb8); }
.rbh-kp-kop__gebruiker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 16px; }
.rbh-kp-kop__uit { display: inline-flex; align-items: center; gap: .55em; color: #fff; font-weight: 500; text-decoration: none; }
.rbh-kp-kop__uit::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform .3s var(--rbh-ease, ease), background .3s; }
.rbh-kp-kop__uit:hover, .rbh-kp-kop__uit:focus-visible { color: var(--global-palette1, #00ffb8); text-decoration: underline; text-underline-offset: 4px; }
.rbh-kp-kop__uit:hover::before { transform: scale(1.8); }
.rbh-kp-kop a:focus-visible, .rbh-kp-voet a:focus-visible { outline: 3px solid var(--global-palette1, #00ffb8); outline-offset: 4px; }

/* Hero zonder transparante site-header: minder ruimte bovenin */
.rbh-kp-omgeving .entry-content > .kb-row-layout-wrap:first-child > .kt-row-column-wrap { padding-top: 70px !important; min-height: 34vh !important; }

.rbh-kp-voet { background: #000; color: var(--global-palette6, #bfbfbf); font-size: 15px; }
.rbh-kp-voet__in { max-width: var(--global-content-width, 1880px); margin: 0 auto; padding: 28px var(--global-content-edge-padding, 25px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 30px; }
.rbh-kp-voet p { margin: 0; }
.rbh-kp-voet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rbh-kp-voet li { margin: 0; }
.rbh-kp-voet a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rbh-kp-voet a:hover { color: var(--global-palette1, #00ffb8); }

@media (max-width: 767px) {
	.rbh-kp-kop__in { padding-top: 14px; padding-bottom: 14px; }
	.rbh-kp-kop__gebruiker { font-size: 15px; width: 100%; justify-content: space-between; }
	.rbh-kp-omgeving .entry-content > .kb-row-layout-wrap:first-child > .kt-row-column-wrap { padding-top: 50px !important; min-height: 0 !important; }
	.rbh-kp-voet__in { flex-direction: column; align-items: flex-start; }
}
