/* Opmaak van de handleidingensite, gelijk aan de statuspagina (site-statuspagina/public/status.css):
   Poppins, warm-witte achtergrond, witte topbalk met gele tabstreep, gele kop met cirkels,
   kaarten met 18 px hoeken, navy contactblok en een smalle witte voet. */

@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(assets/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(assets/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(assets/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(assets/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 800; font-display: swap; src: url(assets/poppins-800.woff2) format('woff2'); }

:root {
  --ink: #1F2545; --ink-2: #3A3F53; --muted: #5B6070; --muted-2: #6A6F82; --faint: #9A9EAE;
  --line: #E7E4DC; --line-2: #F0EEE8; --soft: #F5F3EE; --bg: #F3F1EC; --yellow: #FFC613;
  --blauw: #3E7BD6; --blauw-bg: #EAF1FB;   /* tips / let op */
  --rood: #D03B3B; --rood-bg: #FBEBEB;     /* waarschuwingen */
  --wrap: 1064px; --radius: 18px;
  --schaduw: 0 10px 30px rgba(31,37,69,0.08);
  color-scheme: light;
}

/* ===== Basis ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: Poppins, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; flex: none; }
img { display: block; }
button { font: inherit; color: inherit; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 200; padding: 8px 16px; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 600; border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.view-fade { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Knoppen (pillen) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 11px 20px; border: 0; border-radius: 999px; white-space: nowrap; background: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn svg { width: 15px; height: 15px; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #F4BB00; }
.btn--navy { background: var(--ink); color: #fff; }
.btn--navy:hover { background: #2A3158; }
.btn--ghost { border: 1px solid #5A6080; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== Topbalk ===== */
.header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { flex: none; }
.logo img { height: 34px; width: auto; }

.header-search { position: relative; flex: 1; max-width: 420px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; width: 17px; height: 17px; color: var(--muted-2); pointer-events: none; }
.search-box input {
  width: 100%; height: 42px; padding: 0 40px 0 42px;
  border: 1px solid #D9D5CB; border-radius: 999px; background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input::placeholder { color: var(--faint); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,198,19,0.35); }
.search-box input:focus-visible { outline: none; }
.search-clear { position: absolute; right: 8px; display: none; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; font-size: 20px; line-height: 1; color: var(--muted-2); cursor: pointer; }
.search-clear:hover { background: var(--soft); color: var(--ink); }
.search-clear.visible { display: flex; }

.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; display: none; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(31,37,69,0.18); }
.search-results.active { display: block; }
.search-result-item { display: block; padding: 12px 18px; border-top: 1px solid var(--line-2); cursor: pointer; }
.search-result-item:first-child { border-top: 0; }
.search-result-item:hover, .search-result-item.focused { background: var(--soft); }
.result-title { font-size: 14px; font-weight: 600; }
.result-category { margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.result-snippet { margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.search-results mark { background: rgba(255,198,19,0.45); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-no-results { padding: 18px; text-align: center; font-size: 14px; color: var(--muted-2); }

.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted-2); }
.nav-link { position: relative; padding: 27px 0; white-space: nowrap; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--yellow); }
.nav-link--mobiel { display: none; }
.top-contact { flex: none; }
.search-toggle, .menu-toggle { display: none; }

.mobile-search { display: none; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0 12px; }
.mobile-search.open { display: block; }
.mobile-search .container { position: relative; }
.mobile-search .search-results { left: 16px; right: 16px; max-height: 350px; }

/* ===== Gele kop ===== */
.hero, .subhero { position: relative; overflow: hidden; background: var(--yellow); }
.hero { padding: 56px 0 128px; }
.hero::before, .subhero::before { content: ''; position: absolute; right: -80px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.hero::after, .subhero::after { content: ''; position: absolute; right: 190px; bottom: -120px; width: 210px; height: 210px; border-radius: 50%; background: rgba(31,37,69,0.07); }
.hero .container, .subhero .container { position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }
.hero h1 { margin-top: 10px; font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -0.6px; }
.hero p { margin-top: 14px; max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* kleinere kop op categorie- en artikelpagina's */
.subhero { padding: 28px 0 40px; }
.breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb svg { width: 16px; height: 16px; }
.breadcrumb .separator { color: rgba(31,37,69,0.4); }
.subhero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; max-width: 760px; font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.4px; }
.subhero-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.55); font-size: 22px; }
.subhero-meta { margin-top: 10px; max-width: 760px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ===== Hoofdinhoud ===== */
.main { flex: 1; position: relative; z-index: 2; padding-bottom: 56px; }
#viewHome { margin-top: -92px; }            /* kaarten vallen over de gele kop, zoals de statuskaart */
#viewCategory, #viewArticle, #viewNotFound { padding-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }

/* categorieën, in groepen met een kopje */
.cat-groep + .cat-groep { margin-top: 36px; }
.groep-titel { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.cat-groep:first-child .groep-titel { color: var(--ink-2); }   /* staat nog op de gele kop */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.category-card {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 24px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--schaduw);
  text-align: left; font: inherit; color: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.category-card:hover { border-color: #CFCBC0; box-shadow: 0 14px 36px rgba(31,37,69,0.14); transform: translateY(-2px); }
.category-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: var(--soft); font-size: 20px; }
.category-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.category-card p { flex: 1; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted-2); }
.category-count { display: inline-flex; align-items: center; margin-top: 16px; padding: 3px 10px; border-radius: 999px; background: var(--soft); font-size: 12px; font-weight: 600; color: var(--ink); }

/* artikellijst van een categorie: één kaart met rijen */
.articles-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 24px;
  border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; font: inherit; color: inherit;
  cursor: pointer; -webkit-appearance: none; appearance: none; transition: background 0.15s;
}
.article-item:first-child { border-top: 0; }
.article-item:hover { background: var(--soft); }
.article-item-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.article-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.article-item h2 { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0; }
.article-item p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.article-arrow { flex: none; font-size: 22px; line-height: 1; color: var(--faint); transition: color 0.15s; }
.article-item:hover .article-arrow { color: var(--ink); }
.show-more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px; border: 0; border-top: 1px solid var(--line); background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.show-more-btn:hover { background: #EDEAE2; }

/* artikel */
.article-content { padding: 32px 36px 36px; }
.article-content > * { max-width: 780px; }
.article-content p { margin-bottom: 14px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.article-content h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.2px; }
.article-content > h2:first-child { margin-top: 0; }
.article-content h3 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.article-content li { margin-bottom: 6px; }
.article-content li::marker { color: var(--ink); }
.article-content strong { font-weight: 600; color: var(--ink); }
.article-content code { padding: 2px 7px; border-radius: 6px; background: var(--soft); font-size: 0.9em; color: var(--ink); }
.article-content pre { margin-bottom: 16px; padding: 16px 20px; border-radius: 12px; background: var(--ink); color: #E6E8F0; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.article-content pre code { padding: 0; background: none; color: inherit; }
.step-block { margin-bottom: 10px; padding: 16px 18px; border-radius: 12px; background: var(--soft); }
.step-number { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.step-block h3 { margin: 3px 0 4px; }
.step-block > :last-child { margin-bottom: 0; }
.info-box, .warning-box { margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.info-box { background: var(--blauw-bg); }
.warning-box { background: var(--rood-bg); }
.info-box p, .warning-box p { margin: 0; font-size: 14px; color: inherit; }
.info-label, .warning-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.warning-label { color: var(--rood); }
.back-btn { margin-top: 28px; }

/* contactblok (navy, zoals op de statuspagina) */
.contact { display: flex; flex-direction: column; gap: 6px; margin-top: 44px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.contact h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.contact p { font-size: 14px; line-height: 1.6; color: #D8DAE3; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* naar boven */
.scroll-top { position: fixed; right: 28px; bottom: 28px; z-index: 30; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(31,37,69,0.28); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }

/* ===== Voet ===== */
.footer { margin-top: auto; border-top: 1px solid var(--line); background: #fff; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-top: 22px; padding-bottom: 26px; font-size: 12px; color: var(--muted-2); }
.footer strong { color: var(--ink); }

/* ===== Smalle schermen ===== */
@media (max-width: 900px) {
  .header-inner { gap: 18px; }
  .nav { gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .header { position: sticky; top: 0; }
  .header-inner { position: relative; height: 60px; gap: 10px; }
  .logo img { height: 26px; }
  .header-search, .top-contact { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px 16px 10px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(31,37,69,0.12); font-size: 15px; }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 4px; border-top: 1px solid var(--line-2); }
  .nav-link:first-child { border-top: 0; }
  .nav-link.is-active::after { display: none; }
  .nav-link--mobiel { display: block; }
  .search-toggle, .menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; cursor: pointer; }
  .search-toggle { margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
  .search-toggle svg { width: 18px; height: 18px; }
  .menu-toggle { flex-direction: column; gap: 5px; border: 0; background: none; }
  .menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 30px 0 100px; }
  .hero::before { width: 200px; height: 200px; right: -70px; top: -70px; }
  .hero::after, .subhero::after { display: none; }
  .hero h1 { font-size: 28px; letter-spacing: -0.3px; }
  .hero p { font-size: 15px; }
  #viewHome { margin-top: -72px; }
  .main { padding-bottom: 36px; }
  .categories-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-groep + .cat-groep { margin-top: 28px; }
  .category-card { padding: 18px 18px 16px; }
  .subhero { padding: 20px 0 30px; }
  .subhero h1 { gap: 10px; font-size: 23px; }
  .subhero-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
  .subhero-meta { font-size: 13px; }
  .article-item { padding: 14px 16px; }
  .article-content { padding: 18px; }
  .article-content h2 { font-size: 19px; }
  .contact { margin-top: 32px; padding: 22px 20px; }
  .btns .btn { flex: 1; }
  .scroll-top { right: 16px; bottom: 16px; }
  .footer .container { flex-direction: column; }
}

/* ===== Ingesloten in een iframe op eliveld-ict.nl ===== */
html.embed-mode, body.embed-mode { background: transparent; }
body.embed-mode { min-height: 0; }
/* Logo, menu, knoppen, contactblok en voet verbergen; het zoekveld blijft */
body.embed-mode .logo, body.embed-mode .nav, body.embed-mode .menu-toggle, body.embed-mode .search-toggle,
body.embed-mode .top-contact, body.embed-mode .footer, body.embed-mode .scroll-top, body.embed-mode .contact { display: none !important; }
body.embed-mode .header { position: static; background: transparent; border-bottom: 0; }
body.embed-mode .header-inner { height: auto; padding: 12px 0; justify-content: center; }
body.embed-mode .header-search { display: block !important; flex: none; width: 100%; max-width: 720px; }
body.embed-mode .hero, body.embed-mode .subhero { background: transparent; padding: 16px 0 8px; }
body.embed-mode .hero::before, body.embed-mode .hero::after, body.embed-mode .subhero::before, body.embed-mode .subhero::after { display: none; }
body.embed-mode .eyebrow { display: none; }
body.embed-mode .hero h1 { font-size: 26px; }
body.embed-mode .hero p { font-size: 15px; }
body.embed-mode #viewHome { margin-top: 12px; }
body.embed-mode #viewCategory, body.embed-mode #viewArticle, body.embed-mode #viewNotFound { padding-top: 12px; }
body.embed-mode .category-card { box-shadow: none; }
body.embed-mode .cat-groep:first-child .groep-titel { color: var(--muted-2); }
body.embed-mode .main { padding-bottom: 24px; }
