/*
Theme Name: Kazino Kompas
Description: Theme for Kazino Kompas (BG). Rose Valley palette — dusty terracotta, deep green accent — on a warm off-white page. Allowed blocks only: headings, text, tables, lists, pros/cons, full-width image, author quote.
Version: 1.0.0
Author: WP-generator
Text Domain: wpgen
*/

/* Nunito Sans, variable, self-hosted. Two files cover every weight from 300 to 800. */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-var-italic.woff2") format("woff2-variations"),
       url("assets/fonts/nunito-var-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Rose Valley palette: a warm dusty terracotta/rose base with one deep
     green accent. Roles carry over from the previous theme and never swap:
     ink = structure, gold = emphasis (now terracotta), red = action and
     links (now deep green) — only the hues moved, not the job. */
  --ink: #2B1F1B;
  --ink-2: #34261F;
  --ink-3: #402F26;
  --hero: linear-gradient(152deg, #402F26 0%, #241A16 52%, #170F0B 100%);
  --gold: #C97B63;
  --gold-deep: #A85940;
  --red: #2F6B4A;
  --red-hover: #24543B;

  --font: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --text: #2A211D;
  --muted: #8A7A6E;
  --line: #E9DFD5;
  --line-soft: #F3ECE4;
  --card: #ffffff;
  --page: #FBF4EF;
  --tint: #FBF0E9;
  --pro: #EEF4EE;
  --pro-line: #2F6B4A;
  --con: #FBECEA;
  --con-line: #B4483A;

  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;

  /* Icon for the "waar het misliep" box: the site mascot.
     The path MUST be absolute: the browser resolves url() inside a custom
     property relative to the file where the property is USED, not declared. */
  --note-icon: url('/wp-content/themes/wpgen-BG/assets/mascotte.svg');
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 18px/1.66 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.35px; }

img { max-width: 100%; height: auto; }
a { color: var(--red); }

.kk-omslag { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------------- header ---------------- */

.kk-kopbalk { background: var(--ink); }

/* Logo sits on the left and the nav below it: a centred wordmark is what every
   competitor does, and the brand should not look borrowed. */
.kk-kopbalk-rij {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.kk-hendel {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  cursor: pointer;
}
.kk-hendel span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.kk-hendel span + span { margin-top: 5px; }
.kk-hendel:hover { border-color: var(--gold); }
.kk-hendel:hover span { background: var(--gold); }
/* open state: the three bars fold into a cross */
.kk-hendel.kk-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.kk-hendel.kk-open span:nth-child(2) { opacity: 0; }
.kk-hendel.kk-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.kk-merk { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.kk-merk-ico {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--gold);
  padding: 3px;
  display: flex; align-items: center; justify-content: center;
}
.kk-merk-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }

.kk-merk-txt { display: block; line-height: 1; }
.kk-merk-txt .kk-merk-r1 {
  display: block; color: #C8BEA6; font-size: 12px; font-weight: 700;
  letter-spacing: 2.6px; margin-right: -2.6px; text-transform: uppercase;
  margin-bottom: 5px;
}
/* Wordmark: "Kazino" light, "Kompas" terracotta, one line, no italics.
   The sister sites use an italic split wordmark — this one must not echo it. */
.kk-merk-txt .kk-merk-r2 { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.kk-merk-txt .kk-merk-r2 b { color: #fff; font-weight: 500; }
.kk-merk-txt .kk-merk-r2 i { color: var(--gold); font-weight: 800; font-style: normal; }

/* The nav carries no accent stripe of its own: the flag already runs along the
   bottom of the hero, and a second one here made the header read as two bands. */
.kk-menu {
  border-top: 1px solid rgba(255, 255, 255, .09);
}
/* Always a single line: with up to 11 top-level items wrapping wrecked the
   header, so the row scrolls horizontally instead of breaking to a second
   line (in practice it fits without scrolling on any desktop width). */
.kk-menu ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap;
  align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.kk-menu ul::-webkit-scrollbar { display: none; }
.kk-menu a {
  display: block; color: #DCD5C6; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 13px 12px; white-space: nowrap;
}
.kk-menu a:hover { color: #fff; }
.kk-menu .current-menu-item > a { color: var(--gold); }

/* Dropdown: opens on click (assets/nav.js), never on hover. The link and the
   caret are separate controls side by side — clicking the link navigates,
   clicking the caret only toggles the dropdown. */
.kk-menu li { position: relative; display: flex; align-items: stretch; white-space: nowrap; }

.kk-menu-knop {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: #A99E86; padding: 13px 10px;
}
.kk-menu-knop:hover, .menu-item-has-children.kk-open > .kk-menu-knop { color: #fff; }

.kk-menu-pijl {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease;
}
.menu-item-has-children.kk-open .kk-menu-pijl { transform: rotate(-135deg) translate(-2px, -2px); }

.kk-menu .sub-menu {
  display: none;
  /* `position: fixed`, not `absolute`: the top-level row scrolls horizontally
     (`.kk-menu ul` has `overflow-x: auto`), and setting only one overflow axis
     makes the browser compute the other as `auto` too — an `absolute` dropdown
     was clipped by that box instead of showing below it. `top`/`left` are set
     inline by assets/nav.js from the button's own position when it opens. */
  position: fixed;
  z-index: 30;
  min-width: 236px;
  margin: 0;
  padding: 7px 0;
  list-style: none;
  background: var(--ink-2);
  border: 1px solid #3A3226;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
}
.menu-item-has-children.kk-open > .sub-menu { display: block; }

.kk-menu .sub-menu a {
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}
.kk-menu .sub-menu a:hover { background: var(--ink-3); color: var(--gold); }

/* ---------------- menu on narrow screens ---------------- */

@media (max-width: 900px) {
  .kk-hendel { display: block; }

  /* The panel is opened by the button; closed, it takes up no space at all. */
  .kk-menu {
    display: none;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .kk-menu.kk-open { display: block; animation: kk-uitklap .22s ease-out; }

  .kk-menu ul { display: block; overflow-x: visible; }
  .kk-menu li { position: static; display: flex; align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .kk-menu li:last-child { border-bottom: 0; }
  .kk-menu a { flex: 1 1 auto; padding: 14px 4px; font-size: 16px; text-align: left; white-space: normal; }
  .kk-menu .kk-menu-knop { flex: 0 0 auto; width: 48px; border-left: 0; }
  .kk-menu .current-menu-item > a { color: var(--gold); }

  /* Inside the panel the row wraps: link + caret stay on their line, the
     submenu takes the next one at full width and opens downward, in place,
     without the fixed positioning used on desktop. */
  .kk-menu li { flex-wrap: wrap; }
  .kk-menu .sub-menu {
    position: static;
    flex: 1 0 100%;
    top: auto; left: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, .25);
    margin: 0 -22px;
    padding: 4px 22px 8px;
  }
  .kk-menu .sub-menu a { padding: 11px 12px; font-size: 15px; }

  /* While the menu is open the page underneath does not scroll. */
  body.kk-menu-vast { overflow: hidden; }
}

@keyframes kk-uitklap {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- hero ---------------- */

.kk-vitrine { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: 34px 0 44px; }
.kk-vitrine .kk-omslag { position: relative; z-index: 2; }

/* Mascot on the right of the first screen.
   Three rules keep it from reading as "someone peeking round a corner": it sits
   entirely inside the dark area, fades out downwards through a mask, and has
   almost no contrast. This is background, not illustration. */
.kk-vitrine::before {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 26px;
  width: 236px;
  height: 236px;
  background: url("assets/mascotte.svg") no-repeat center / contain;
  opacity: .09;
  transform: rotate(4deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, .25) 90%, transparent 100%);
  z-index: 1;
  pointer-events: none;
  animation: kk-mascotte-op 1s ease-out both;
}
/* On an author page the portrait stands on the right: two faces side by side is one too many. */
.kk-vitrine-auteur::before { display: none; }
/* The portrait is absolutely positioned and does not add to the hero's own
   height, so a short intro left the hero shorter than the photo and
   `overflow: hidden` above cropped it. Forcing enough room fixes that. */
.kk-vitrine-auteur { padding-bottom: 210px; min-height: 300px; }

@keyframes kk-mascotte-op {
  from { opacity: 0; transform: translate(18px, 10px) rotate(12deg); }
  to   { opacity: .09; transform: rotate(4deg); }
}

/* Martenitsa braid instead of a flat tricolour bar: a thin twisted-cord motif
   in the accent colours, the one deliberate local touch on the hero. A flat
   edge is still easier to read than a diagonal cut and costs no vertical
   space on a phone — the pattern just rides along it. */
.kk-vitrine::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M0 5c3.5-4.5 3.5 4.5 7 0s3.5-4.5 7 0 3.5 4.5 7 0 3.5-4.5 7 0' fill='none' stroke='%23F3ECE4' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M0 5c3.5 4.5 3.5-4.5 7 0s3.5 4.5 7 0 3.5 4.5 7 0 3.5-4.5 7 0' fill='none' stroke='%23C97B63' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 28px 10px;
  pointer-events: none;
}

.kk-vitrine .kk-kruimels { font-size: 14px; color: #A79C87; margin-bottom: 18px; }
.kk-vitrine .kk-kruimels a { color: #A79C87; text-decoration: none; }
.kk-vitrine .kk-kruimels a:hover { color: var(--gold); }

.kk-vitrine-plat .kk-vitrine-grid { grid-template-columns: 1fr; }
.kk-vitrine-plat h1 { max-width: 22ch; }
.kk-vitrine-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 30px; align-items: center; }
.kk-vitrine h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08; margin: 0 0 16px; font-weight: 800; letter-spacing: -1px;
}
.kk-vitrine p.kk-inleiding { max-width: 64ch; font-size: clamp(16px, 1.35vw, 19px); font-weight: 400; color: #E7E1D3; margin: 0 0 22px; }
.kk-vitrine p.kk-inleiding strong { color: #fff; font-weight: 700; }
.kk-vitrine-beeld { border-radius: var(--radius-lg); overflow: hidden; }

.kk-snelmenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.kk-snelmenu-item {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.kk-snelmenu-item:hover { background: rgba(255, 255, 255, .11); border-color: var(--gold); }
.kk-snelmenu-item .kk-snelmenu-ico { display: block; font-size: 24px; margin-bottom: 8px; }

/* ---------------- author blocks ---------------- */

.kk-byline { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-top: 22px; }
.kk-byline .kk-byline-persoon { display: flex; align-items: center; gap: 11px; }
.kk-byline img, .kk-auteur img {
  border-radius: 50%; background: var(--ink-3); object-fit: cover; flex: 0 0 auto;
}
.kk-byline img { width: 42px; height: 42px; border: 2px solid rgba(239, 180, 26, .45); }
.kk-auteur img { width: 74px; height: 74px; }
.kk-byline .kk-byline-meta { font-size: 13.5px; line-height: 1.4; color: #EFE9DB; }
.kk-byline .kk-byline-meta .kk-byline-rol { color: #B4A991; }
.kk-byline .kk-byline-meta a { color: #fff; font-weight: 700; text-decoration: none; }
.kk-byline .kk-byline-meta a:hover { color: var(--gold); }

.kk-auteur {
  position: relative;
  overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px; display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
}
/* The same mascot as in the hero, only fainter: the author card stops being a
   blank rectangle and rhymes with the first screen. */
.kk-auteur::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 168px;
  height: 168px;
  background: url("assets/mascotte.svg") no-repeat center / contain;
  opacity: .06;
  transform: rotate(6deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 50%, transparent 92%);
  pointer-events: none;
}
@media (max-width: 640px) {
  /* In a narrow card the mascot eats the space the text needs. */
  .kk-auteur::after { display: none; }
}
.kk-auteur > * { position: relative; z-index: 1; }
.kk-auteur .kk-auteur-romp { flex: 1; }
.kk-auteur h2 { margin: 0 0 6px; font-size: 20px; padding-left: 0; border-left: 0; }
.kk-auteur .kk-byline-rol { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.kk-auteur p { margin: 0 0 10px; }
.kk-auteur .kk-auteur-link { font-weight: 700; text-decoration: none; }
.kk-auteur .kk-auteur-link:hover { text-decoration: underline; }

/* Pull quote: gold rule on top, not a left border — the quote reads as a
   separate voice in the text rather than as an indented aside.
   Two selectors on purpose: .kk-citaat is what wpgen_author_quote() prints,
   while a quote written in the page text arrives from the block converter as a
   plain blockquote.wp-block-quote and has to get the same treatment. */
.kk-citaat,
.kk-tekst blockquote {
  border: 0;
  border-top: 3px solid var(--gold);
  background: var(--tint);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 24px; margin: 30px 0; font-size: 19px; font-style: italic; color: #2A251C;
}
.kk-tekst blockquote p { margin: 0; }
.kk-tekst blockquote p + p { margin-top: 12px; }
.kk-citaat footer, .kk-tekst blockquote cite {
  display: block; margin-top: 12px; font-size: 14px; font-style: normal; color: var(--muted);
}

/* ---------------- content ---------------- */

.kk-romp { padding: 30px 0 10px; }
.kk-blok { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; }

/* H2 with a gold bar to its left instead of an underline: the section starts at
   a visible edge, which also survives being read at a glance on a phone. */
.kk-tekst h2 {
  font-size: 27px; margin: 38px 0 14px; letter-spacing: -.5px;
  padding-left: 16px; border-left: 5px solid var(--gold);
  line-height: 1.22;
}
.kk-tekst h3 { font-size: 21px; margin: 28px 0 10px; }
.kk-tekst h2:first-child, .kk-tekst h3:first-child { margin-top: 0; }
.kk-tekst p { margin: 0 0 17px; }
.kk-tekst > *:first-child { margin-top: 0; }
.kk-tekst > *:last-child { margin-bottom: 0; }
.kk-tekst figure.wp-block-table { margin: 0 0 24px; overflow-x: auto; }
.kk-tekst figure.wp-block-table table { margin: 0; }
.kk-tekst ul.wp-block-list, .kk-tekst ol.wp-block-list { margin: 0 0 18px; padding-left: 22px; }
.kk-tekst ul, .kk-tekst ol { margin: 0 0 18px; padding-left: 22px; }
.kk-tekst li { margin-bottom: 8px; }
.kk-tekst li::marker { color: var(--gold-deep); font-weight: 700; }

/* Table with an ink header row: the first row is a label strip, not another
   shaded cell, so a wide comparison stays readable while scrolling sideways. */
.kk-tekst table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.kk-tekst th, .kk-tekst td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.kk-tekst th { background: var(--ink); color: #fff; font-weight: 700; border-color: var(--ink); }
.kk-tekst tr:nth-child(even) td { background: var(--tint); }

/* Images in the text share the radius of the cards and tables:
   .kk-figuur is the classic editor, .wp-block-image is Gutenberg. */
.kk-tekst figure.kk-figuur,
.kk-tekst figure.wp-block-image { margin: 30px 0; }
.kk-tekst figure.kk-figuur img,
.kk-tekst figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(23, 20, 15, .09);
  transition: box-shadow .25s ease, transform .25s ease;
}
.kk-tekst figure.kk-figuur img:hover,
.kk-tekst figure.wp-block-image img:hover {
  box-shadow: 0 14px 30px rgba(23, 20, 15, .17);
  transform: translateY(-2px);
}
.kk-weegschaal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.kk-weegschaal > div { border-radius: var(--radius); padding: 18px 20px; }
.kk-weegschaal .kk-voordeel { background: var(--pro); border: 1px solid var(--pro-line); }
.kk-weegschaal .kk-nadeel { background: var(--con); border: 1px solid var(--con-line); }
.kk-weegschaal h3 { margin: 0 0 10px; font-size: 17px; }
.kk-weegschaal .kk-voordeel h3 { color: #1F6437; }
.kk-weegschaal .kk-nadeel h3 { color: #A50D26; }
.kk-weegschaal ul { margin: 0; padding-left: 20px; }

.kk-vragen h3 { font-size: 19px; margin: 22px 0 8px; }
.kk-vragen p { margin: 0 0 14px; }

/* Accordion: H3 + paragraph in the content are turned into a clickable block by the script. */
.kk-vragen-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}
.kk-vragen-item.kk-open { border-color: var(--gold); box-shadow: 0 2px 12px rgba(23, 20, 15, .07); }

.kk-vragen-knop {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 16px 18px;
  font: 800 17px/1.4 var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.kk-vragen-knop:hover { background: var(--tint); }
.kk-vragen-knop-txt { flex: 1; }

.kk-vragen-ico {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  position: relative;
  border-radius: 7px;
  background: var(--line-soft);
  transition: transform .18s ease, background .18s ease;
}
.kk-vragen-ico::before, .kk-vragen-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  background: var(--ink);
  border-radius: 2px;
}
.kk-vragen-ico::after { transform: rotate(90deg); transition: opacity .18s ease; }
.kk-vragen-item.kk-open .kk-vragen-ico { background: var(--gold); }
.kk-vragen-item.kk-open .kk-vragen-ico::after { opacity: 0; }

.kk-vragen-antwoord { display: none; padding: 0 18px 16px; }
.kk-vragen-item.kk-open .kk-vragen-antwoord { display: block; }
.kk-vragen-antwoord p { margin: 0 0 10px; }
.kk-vragen-antwoord p:last-child { margin-bottom: 0; }

/* ---------------- footer ---------------- */

.kk-voet { background: var(--ink); color: #C6BDA9; margin-top: 44px; padding: 36px 0 26px; font-size: 15px; }
/* Four columns: brand, sections, editorial and legal, outside help. The header
   menu is deliberately short, so the footer is what gives full access. */
.kk-voet-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.kk-voet h4 { color: var(--gold); font-size: 14px; margin: 0 0 13px; text-transform: uppercase; letter-spacing: 1px; }
.kk-voet ul { list-style: none; margin: 0; padding: 0; }
.kk-voet li { margin-bottom: 8px; }
.kk-voet a { color: #C6BDA9; text-decoration: none; }
.kk-voet a:hover { color: var(--gold); }
.kk-voet-note { border-top: 1px solid #332C21; margin-top: 28px; padding-top: 18px; font-size: 13px; color: #918872; }
.kk-leeftijd {
  display: inline-block; border: 2px solid var(--gold); color: var(--gold); border-radius: 50%;
  width: 36px; height: 36px; line-height: 32px; text-align: center;
  font-weight: 800; font-size: 12px; margin-right: 10px; vertical-align: middle;
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .kk-vitrine { padding: 24px 0 34px; }
  /* On a tablet the mascot shrinks: at full size it takes over the first screen. */
  .kk-vitrine::before { width: 168px; height: 168px; right: 16px; bottom: 20px; opacity: .08; }
  .kk-vitrine-grid { grid-template-columns: 1fr; gap: 22px; }
  .kk-vitrine-beeld { order: 2; max-width: 440px; margin: 0 auto; width: 100%; }
  .kk-snelmenu { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
  .kk-snelmenu-item { padding: 14px 10px; font-size: 12px; }
  .kk-voet-grid { grid-template-columns: 1fr 1fr; }
  .kk-vitrine-plat h1 { max-width: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .kk-omslag { padding: 0 16px; }

  .kk-vitrine-beeld { max-width: 340px; }
  .kk-vitrine p.kk-inleiding { font-size: 16px; }
  /* On a phone the text takes the full width: a decorative mascot only gets in the way. */
  .kk-vitrine::before { display: none; }
  .kk-byline { gap: 14px; margin-top: 18px; }
  .kk-byline .kk-byline-persoon { flex: 1 1 100%; }

  .kk-romp { padding: 22px 0 6px; }
  .kk-blok { padding: 20px 16px; }
  .kk-tekst h2 { font-size: 22px; margin: 28px 0 10px; padding-left: 12px; border-left-width: 4px; }
  .kk-tekst h3 { font-size: 19px; }
  .kk-weegschaal { grid-template-columns: 1fr; }
  .kk-auteur { flex-direction: column; }
  .kk-voet-grid { grid-template-columns: 1fr; }
  .kk-tekst table { display: block; overflow-x: auto; }
}

/* ---------------- author profile pages ---------------- */

.kk-profiel {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 0 0 28px;
}
.kk-profiel img {
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: var(--ink-3); flex: 0 0 auto;
  border: 4px solid #fff; box-shadow: 0 6px 18px rgba(23, 20, 15, .12);
}
.kk-profiel .kk-auteur-romp { flex: 1; min-width: 0; }
.kk-profiel .kk-byline-rol { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 14px; }
.kk-profiel ul.kk-profiel-info { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.kk-profiel ul.kk-profiel-info li {
  padding: 8px 0; border-top: 1px solid var(--line); margin: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.kk-profiel ul.kk-profiel-info li:first-child { border-top: 0; padding-top: 0; }
.kk-profiel ul.kk-profiel-info strong { flex: 0 0 210px; color: var(--muted); font-weight: 600; }

.kk-profiel.kk-profiel-mini { margin: 0 0 18px; padding: 20px 22px; }
.kk-profiel.kk-profiel-mini img { width: 120px; height: 120px; }
.kk-profiel.kk-profiel-mini h3 { margin: 0 0 4px; font-size: 20px; }
.kk-profiel.kk-profiel-mini h3 a { text-decoration: none; }
.kk-profiel.kk-profiel-mini .kk-byline-rol { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.kk-profiel.kk-profiel-mini p { margin: 0 0 10px; }
.kk-profiel.kk-profiel-mini .kk-auteur-link { font-weight: 700; text-decoration: none; }

/* ---------------- self-assessment test ---------------- */

.kk-zelftest { margin: 26px 0 32px; }
.kk-zelftest-app {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint); padding: 26px 28px;
}
.kk-zelftest-head h3 { margin: 0 0 4px; font-size: 20px; }
.kk-zelftest-voortgang { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* The separator is drawn with ::before rather than border-top: a legend with
   display:flex stops "breaking" the fieldset border and the rule runs through the text. */
.kk-zelftest-vraag { border: 0; margin: 0; padding: 0 0 4px; }
.kk-zelftest-vraag + .kk-zelftest-vraag::before {
  content: ""; display: block; height: 1px; background: var(--line); margin: 18px 0;
}
.kk-zelftest-vraag legend { display: flex; gap: 10px; padding: 0; margin-bottom: 12px; float: left; width: 100%; }
.kk-zelftest-vraag .kk-zelftest-opties { clear: both; }
.kk-zelftest-vraag legend .kk-zelftest-num {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--line-soft);
  color: var(--muted); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.kk-zelftest-vraag.kk-zelftest-klaar legend .kk-zelftest-num { background: var(--gold); color: var(--ink); }
.kk-zelftest-vraag legend .kk-zelftest-txt { font-weight: 600; }

.kk-zelftest-vraag .kk-zelftest-opties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kk-zelftest-vraag .kk-zelftest-opties input { position: absolute; opacity: 0; width: 0; height: 0; }
.kk-zelftest-vraag .kk-zelftest-opties label {
  display: block; text-align: center; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  padding: 10px 8px; font-size: 14px; line-height: 1.3;
}
.kk-zelftest-vraag .kk-zelftest-opties label:hover { border-color: var(--red); }
.kk-zelftest-vraag .kk-zelftest-opties input:checked + label {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 600;
}
.kk-zelftest-vraag .kk-zelftest-opties input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

.kk-zelftest-verstuur, .kk-zelftest-opnieuw {
  margin-top: 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff; font-family: inherit;
  font-size: 16px; font-weight: 800; padding: 13px 26px;
}
.kk-zelftest-verstuur:hover:enabled, .kk-zelftest-opnieuw:hover { background: var(--red-hover); }
.kk-zelftest-verstuur:disabled { background: #DBD6CA; color: #857E6F; cursor: not-allowed; }
.kk-zelftest-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.kk-zelftest-uitslag { display: none; }
.kk-zelftest-uitslag.kk-zelftest-zichtbaar { display: block; margin-top: 26px; padding-top: 24px; border-top: 2px solid var(--line); }
.kk-zelftest-badge { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius); color: #fff; }
.kk-zelftest-badge .kk-zelftest-badge-titel { font-size: 21px; font-weight: 800; }
.kk-zelftest-badge .kk-zelftest-badge-score { font-size: 14px; opacity: .92; }
.kk-zelftest-badge.kk-n0 { background: #2C7A47; }
.kk-zelftest-badge.kk-n1 { background: #7CA33F; }
.kk-zelftest-badge.kk-n2 { background: #D08A1E; }
.kk-zelftest-badge.kk-n3 { background: var(--red); }

.kk-zelftest-schaal-wrap { margin: 18px 0 6px; }
.kk-zelftest-schaal { width: 100%; height: auto; display: block; }
.kk-zelftest-schaal .kk-zelftest-g-score { font-family: var(--font); font-size: 21px; font-weight: 800; fill: var(--ink); }
.kk-zelftest-schaal .kk-zelftest-g-band { font-family: var(--font); font-size: 13px; fill: #5B5446; }
.kk-zelftest-schaal .kk-zelftest-g-as { font-family: var(--font); font-size: 12.5px; fill: #8C8474; }

.kk-zelftest-intro { margin: 6px 0 18px; }
.kk-zelftest-delen { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 12px; }
.kk-zelftest-deel .kk-zelftest-deel-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.kk-zelftest-deel .kk-zelftest-deel-label { color: var(--muted); }
.kk-zelftest-deel .kk-zelftest-deel-waarde { font-weight: 700; }
.kk-zelftest-deel .kk-zelftest-deel-baan { height: 12px; border-radius: 6px; background: var(--line-soft); overflow: hidden; }
.kk-zelftest-deel .kk-zelftest-deel-vul { height: 100%; border-radius: 6px; }
.kk-zelftest-delen-note { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.kk-zelftest-uitslag h4 { font-size: 18px; margin: 0 0 10px; }
.kk-zelftest-acties { margin: 0 0 18px; padding-left: 22px; }
.kk-zelftest-acties li { margin-bottom: 8px; }
.kk-zelftest-melding { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .kk-profiel { flex-direction: column; padding: 18px 16px; }
  .kk-profiel img { width: 120px; height: 120px; }
  .kk-profiel ul.kk-profiel-info li { display: block; }
  .kk-profiel ul.kk-profiel-info strong { display: block; flex: none; }

  .kk-zelftest-app { padding: 18px 14px; }
  .kk-zelftest-vraag .kk-zelftest-opties { grid-template-columns: 1fr 1fr; }
  .kk-zelftest-verstuur, .kk-zelftest-opnieuw { width: 100%; }
  .kk-zelftest-delen { grid-template-columns: 1fr; }
  /* The svg scales with its viewBox, so on a narrow screen the labels have to
     grow in user units, otherwise they become unreadable. */
  .kk-zelftest-schaal .kk-zelftest-g-score { font-size: 30px; }
  .kk-zelftest-schaal .kk-zelftest-g-band { font-size: 19px; }
  .kk-zelftest-schaal .kk-zelftest-g-as { font-size: 17px; }
  .kk-zelftest-deel .kk-zelftest-deel-head { display: block; }
  .kk-zelftest-deel .kk-zelftest-deel-waarde { display: block; margin-top: 2px; }
}

/* ---------- "Hoe wij testen": the site-wide method block ----------
   Three layout variants, chosen per site (config key: test_flow).
   The colours come from the variables, so the block always wears the palette
   of the domain it runs on instead of dragging a foreign one along.        */

.kk-werkwijze { margin: 32px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.kk-werkwijze-titel { font-size: 22px; margin: 0 0 6px; letter-spacing: -.4px; }
.kk-werkwijze-intro { color: var(--muted); font-size: 16px; margin: 0 0 22px; max-width: 78ch; }
.kk-werkwijze-meer { margin: 18px 0 0; font-size: 15px; }
.kk-werkwijze-ico { width: 24px; height: 24px; display: block; }

/* --- "rail" variant: four steps on a shared line --- */

.kk-werkwijze-lijn .kk-werkwijze-stappen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.kk-werkwijze-lijn .kk-werkwijze-stap { position: relative; padding: 0 14px; text-align: center; margin: 0; }
.kk-werkwijze-lijn .kk-werkwijze-stap::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 50%;
  border-top: 2px solid var(--line);
}
.kk-werkwijze-lijn .kk-werkwijze-stap::after {
  content: ""; position: absolute; top: 27px; left: 50%; right: 0;
  border-top: 2px solid var(--line);
}
.kk-werkwijze-lijn .kk-werkwijze-stap:first-child::before,
.kk-werkwijze-lijn .kk-werkwijze-stap:last-child::after { display: none; }
.kk-werkwijze-lijn .kk-werkwijze-schijf {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--ink); color: #fff;
}
/* White on gold misses the minimum contrast ratio, so that icon is dark. */
.kk-werkwijze-lijn .kk-stap-klok .kk-werkwijze-schijf { background: var(--gold); color: var(--ink); }
.kk-werkwijze-lijn .kk-werkwijze-num {
  position: absolute; right: -6px; bottom: -6px;
  width: 22px; height: 22px; border-radius: 7px;
  background: #fff; color: var(--ink);
  border: 2px solid var(--line);
  font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}
.kk-werkwijze-lijn .kk-werkwijze-romp { display: block; margin-top: 13px; }
.kk-werkwijze-lijn .kk-werkwijze-stap-titel { display: block; font-size: 16px; line-height: 1.3; }
.kk-werkwijze-lijn .kk-werkwijze-note { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.kk-werkwijze-lijn .kk-werkwijze-detail { display: block; font-size: 14px; line-height: 1.5; margin-top: 8px; text-align: left; }

/* --- "tiles" variant: four dense tiles, no connecting line --- */

.kk-werkwijze-tegels .kk-werkwijze-stappen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.kk-werkwijze-tegels .kk-werkwijze-stap {
  position: relative; overflow: hidden; margin: 0;
  padding: 16px 16px 18px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
}
.kk-werkwijze-tegels .kk-stap-klok { background: linear-gradient(158deg, var(--ink-3) 0%, var(--ink) 70%); }
.kk-werkwijze-tegels .kk-werkwijze-schijf { display: block; color: var(--gold); }
.kk-werkwijze-tegels .kk-werkwijze-num {
  position: absolute; right: 10px; top: 2px;
  font-size: 44px; font-weight: 800; line-height: 1;
  color: #fff; opacity: .12;
}
.kk-werkwijze-tegels .kk-werkwijze-romp { display: block; margin-top: 12px; }
.kk-werkwijze-tegels .kk-werkwijze-stap-titel { display: block; font-size: 16px; line-height: 1.3; }
.kk-werkwijze-tegels .kk-werkwijze-note { display: block; color: #CFC5AF; font-size: 14px; line-height: 1.45; margin-top: 4px; }
.kk-werkwijze-tegels .kk-werkwijze-detail { display: block; color: #E4DCC9; font-size: 14px; line-height: 1.5; margin-top: 8px; }

/* --- "stopwatch" variant: one solid SVG, labels inside the drawing --- */

.kk-werkwijze-figuur { margin: 0; }
.kk-werkwijze-svg { width: 100%; height: auto; display: block; }
.kk-werkwijze-svg-v { display: none; }

@media (max-width: 860px) {
  .kk-werkwijze-lijn .kk-werkwijze-stappen, .kk-werkwijze-tegels .kk-werkwijze-stappen { grid-template-columns: 1fr 1fr; }
  .kk-werkwijze-lijn .kk-werkwijze-stap { padding-bottom: 20px; }
  .kk-werkwijze-lijn .kk-werkwijze-stap:nth-child(2)::after,
  .kk-werkwijze-lijn .kk-werkwijze-stap:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .kk-werkwijze-lijn .kk-werkwijze-stappen, .kk-werkwijze-tegels .kk-werkwijze-stappen { grid-template-columns: 1fr; }
  .kk-werkwijze-lijn .kk-werkwijze-stap { display: flex; gap: 14px; text-align: left; padding: 0 0 18px; }
  .kk-werkwijze-lijn .kk-werkwijze-stap::before, .kk-werkwijze-lijn .kk-werkwijze-stap::after { display: none; }
  .kk-werkwijze-lijn .kk-werkwijze-stap:not(:last-child) .kk-werkwijze-schijf::after {
    content: ""; position: absolute; left: 50%; top: 54px; height: 34px;
    border-left: 2px solid var(--line);
  }
  .kk-werkwijze-lijn .kk-werkwijze-schijf { flex: 0 0 54px; }
  .kk-werkwijze-lijn .kk-werkwijze-romp { margin-top: 2px; }
  .kk-werkwijze-svg-h { display: none; }
  .kk-werkwijze-svg-v { display: block; }
}

/* The "waar het misliep" box: a short log of what went wrong inside a review.
   The icon is the site mascot, set through --note-icon, because every domain
   has its own. No JS: this is a static block that must behave identically
   across dozens of domains. */
.kk-logboek {
  position: relative;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--tint);
  padding: 16px 18px 14px 62px;
  margin: 24px 0;
}
.kk-logboek::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--note-icon, none) center/contain no-repeat;
  opacity: .95;
}
.kk-logboek h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.kk-logboek p { margin: 0 0 10px; }
.kk-logboek p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .kk-logboek { padding: 14px 14px 12px 14px; }
  .kk-logboek::before { position: static; display: block; margin-bottom: 8px; }
}

/* Index of child pages on a hub. Rendered by the theme, so the styles live
   here: the mechanism is shared, the contents differ per site. */
.kk-inhoud { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.kk-inhoud h2 { margin: 0 0 14px; }
.kk-inhoud ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.kk-inhoud li { line-height: 1.5; }
.kk-inhoud a { font-weight: 700; text-decoration: none; }
.kk-inhoud a:hover { text-decoration: underline; }
.kk-inhoud span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .kk-inhoud ul { grid-template-columns: 1fr; } }

/* Hub page that is nothing but a list of articles (wpgen_listing_hub) */
.kk-lijst { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kk-lijst-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.kk-lijst-rubriek { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.kk-lijst-titel { font-size: 20px; font-weight: 800; line-height: 1.3; text-decoration: none; color: var(--text); }
.kk-lijst-titel:hover { color: var(--red); }
.kk-lijst-txt { margin: 0; color: var(--muted); line-height: 1.55; }
.kk-lijst-voet { margin-top: auto; padding-top: 10px; display: flex; gap: 16px; color: var(--muted); font-size: 14px; }
.kk-lijst-leeg { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .kk-lijst { grid-template-columns: 1fr; } }
/* On a listing hub the outer card is redundant: the article cards are the content. */
.kk-tekst:has(> .kk-lijst), .kk-tekst:has(> .kk-lijst-leeg) { background: none; border: 0; padding: 0; }

/* ---------------- disclaimer under the byline ---------------- */

.kk-melding {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px;
  line-height: 1.55;
  color: #BCB29B;
  max-width: 82ch;
}
.kk-melding-leeftijd {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 8px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 800;
  font-size: 12px;
}

/* ---------------- portrait on the author page ---------------- */

.kk-vitrine-auteur .kk-omslag { position: relative; }
.kk-portret {
  position: absolute; right: 0; top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.kk-portret img {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(239, 180, 26, .4);
  box-shadow: 0 14px 34px rgba(10, 8, 6, .5);
}
.kk-portret .kk-portret-stad { font-size: 13px; color: #B4A991; letter-spacing: .3px; }
.kk-vitrine-auteur h1, .kk-vitrine-auteur p.kk-inleiding { max-width: 30ch; }

@media (max-width: 900px) {
  .kk-portret { position: static; align-items: flex-start; margin-top: 18px; }
  .kk-portret img { width: 128px; height: 128px; }
  .kk-vitrine-auteur h1, .kk-vitrine-auteur p.kk-inleiding { max-width: none; }
  .kk-vitrine-auteur { padding-bottom: 44px; min-height: 0; }
}

/* ---------------- trust badge strip above the footer ---------------- */

/* The strip sits flush against the footer: the footer's own top margin would
   otherwise leave a light gap and the strip would float on its own. */
.kk-waarborgen + .kk-voet { margin-top: 0; }

/* Faint rose-valley pattern behind the trust strip: the second and last of the
   two deliberate local accents, kept low-density so it reads as texture, not
   decoration competing with the badges themselves. */
.kk-waarborgen {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23C97B63' stroke-width='1.4' opacity='0.16'%3E%3Ccircle cx='60' cy='54' r='9'/%3E%3Ccircle cx='71' cy='47' r='9'/%3E%3Ccircle cx='71' cy='61' r='9'/%3E%3Ccircle cx='49' cy='47' r='9'/%3E%3Ccircle cx='49' cy='61' r='9'/%3E%3Cpath d='M60 63v14'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.kk-waarborgen ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
/* The `<li>` is the actual flex item here (direct child of the flex `<ul>`) —
   the `<a>`/`<span>` card inside it is not, so giving IT a flex-basis did
   nothing: the `<li>` still sized to its content, and the NAP card's longer
   subtitle grew wide enough to push a 4th card onto its own row. */
.kk-waarborgen li { flex: 1 1 240px; }
.kk-waarborgen a, .kk-waarborgen .kk-waarborg-vast {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink);
}
.kk-waarborgen a:hover { border-color: var(--red); }
.kk-waarborgen a:hover .kk-waarborg-ico { color: var(--red); }
.kk-waarborgen .kk-waarborg-ico { flex: 0 0 auto; color: var(--gold-deep); }
.kk-waarborgen .kk-waarborg-txt { display: flex; flex-direction: column; min-width: 0; }
.kk-waarborgen .kk-waarborg-naam { font-weight: 800; font-size: 15px; letter-spacing: .3px; line-height: 1.2; }
.kk-waarborgen .kk-waarborg-note { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 720px) {
  .kk-waarborgen { padding: 14px 0; }
  .kk-waarborgen li { flex-basis: calc(50% - 5px); }
  .kk-waarborgen a, .kk-waarborgen .kk-waarborg-vast { padding: 9px 12px; }
  .kk-waarborgen .kk-waarborg-note { font-size: 11px; }
}

/* ---------------- in-content CTA banner and explanatory schemes ---------------- */

.kk-spandoek { display: block; margin: 32px 0; }
.kk-spandoek img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(23, 20, 15, .15);
}
.kk-spandoek--svetlo img { box-shadow: 0 10px 24px rgba(23, 20, 15, .09); }

.kk-schema { margin: 30px 0; }
.kk-schema img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

@media (max-width: 640px) {
  .kk-spandoek { margin: 22px 0; }
  .kk-spandoek img { border-radius: var(--radius); }
  .kk-schema { margin: 20px 0; }
}

/* Eight top-level items do not fit a row at 15px with 14px padding, so the
   desktop header packs a little tighter. Submenus stay comfortable. */
@media (min-width: 981px) {
  .kk-menu a, .kk-menu .kk-menu-knop { font-size: 14.5px; padding: 12px 11px; }
  .kk-menu .sub-menu a { font-size: 14px; padding: 9px 16px; }
}

/* ---------------- motion: hover and entrance ----------------
   One rule: animation signals that something is clickable and never gets in the
   way of reading. So everything is short (0.2-0.3 s) and nothing shifts layout. */

.kk-merk-ico img { transition: transform .3s ease; }
.kk-merk:hover .kk-merk-ico img { transform: rotate(-6deg) scale(1.06); }

.kk-menu a, .kk-menu .kk-menu-knop { transition: color .18s ease, background .18s ease; }

.kk-tekst a { transition: color .18s ease; }
.kk-tekst p a { text-underline-offset: 3px; }
.kk-tekst p a:hover { color: var(--red-hover); }

/* Cards: a slight lift and shadow, the border picks up the accent. */
.kk-lijst-item, .kk-waarborgen a, .kk-auteur {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.kk-lijst-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(23, 20, 15, .09);
}
.kk-waarborgen a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(23, 20, 15, .09); }

.kk-spandoek img { transition: transform .25s ease, box-shadow .25s ease; }
.kk-spandoek:hover img { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(23, 20, 15, .2); }

.kk-tekst tbody tr { transition: background .18s ease; }
.kk-tekst tbody tr:hover td { background: #F3EFE5; }

.kk-werkwijze-lijn .kk-werkwijze-schijf { transition: transform .22s ease, box-shadow .22s ease; }
.kk-werkwijze-lijn .kk-werkwijze-stap:hover .kk-werkwijze-schijf {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(23, 20, 15, .22);
}

.kk-vragen-knop { transition: background .18s ease; }
.kk-vragen-item { transition: border-color .2s ease, box-shadow .2s ease; }

/* The first screen appears with a minimal shift: heading, lead and byline. */
.kk-vitrine h1,
.kk-vitrine p.kk-inleiding,
.kk-vitrine .kk-byline { animation: kk-opkomst .55s ease-out both; }
.kk-vitrine p.kk-inleiding { animation-delay: .08s; }
.kk-vitrine .kk-byline { animation-delay: .16s; }

@keyframes kk-opkomst {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Whoever turned animations off in their system does not see them here either. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .kk-vitrine h1, .kk-vitrine p.kk-inleiding, .kk-vitrine .kk-byline { opacity: 1; transform: none; }
  .kk-vitrine::before { opacity: .09; transform: rotate(4deg); }
}
