/*
   Huisstijl MKB Informatiebeveiliging, gebaseerd op mkbinformatiebeveiliging.nl:
   teal uit het logo (#2c9baf) als hoofdkleur en het warme zand (#d9d0cb) als vlakkleur.
   Het Telerik-thema (Bootstrap) neemt de kleuren over via de --kendo-color-* variabelen.
*/

:root {
    --ib-teal: #2c9baf;
    --ib-teal-dark: #1f7a8b;
    --ib-teal-darker: #175f6c;
    --ib-teal-light: #95cdd7;
    --ib-teal-50: #eaf6f8;
    --ib-sand: #d9d0cb;
    --ib-sand-light: #f4f0ed;
    --ib-sand-dark: #b9ada6;
    --ib-ink: #2f3437;
    --ib-muted: #62686c;
    --ib-line: #e6e1dd;
    --ib-radius: 14px;
    --ib-shadow: 0 1px 2px rgba(47, 52, 55, .06), 0 8px 24px rgba(47, 52, 55, .07);
    --ib-font: "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;

    /* Telerik-thema */
    --kendo-color-primary: var(--ib-teal);
    --kendo-color-primary-hover: var(--ib-teal-dark);
    --kendo-color-primary-active: var(--ib-teal-darker);
    --kendo-color-primary-emphasis: var(--ib-teal-light);
    --kendo-color-primary-subtle: var(--ib-teal-50);
    --kendo-color-primary-subtle-hover: #d6eef2;
    --kendo-color-primary-subtle-active: #c2e5eb;
    --kendo-color-primary-on-subtle: var(--ib-teal-darker);
    --kendo-color-primary-on-surface: var(--ib-teal-dark);
    --kendo-color-on-primary: #fff;
    --kendo-font-family: var(--ib-font);

    /* Bootstrap */
    --bs-primary: var(--ib-teal);
    --bs-primary-rgb: 44, 155, 175;
    --bs-link-color: var(--ib-teal-dark);
    --bs-link-color-rgb: 31, 122, 139;
    --bs-link-hover-color: var(--ib-teal-darker);
    --bs-body-font-family: var(--ib-font);
    --bs-body-color: var(--ib-ink);
    --bs-border-radius: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ib-font);
    color: var(--ib-ink);
    background: #fff;
    font-size: 1.0625rem;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.01em; color: var(--ib-ink); line-height: 1.2; }
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
a { text-underline-offset: 3px; }

.ib-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.ib-main { flex: 1 0 auto; }
.ib-lead { font-size: 1.2rem; color: var(--ib-muted); max-width: 46rem; }
.ib-lead p:last-child { margin-bottom: 0; }
.ib-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--ib-teal-dark); margin-bottom: .5rem; display: block; }
.text-teal { color: var(--ib-teal-dark) !important; }
.bg-sand { background: var(--ib-sand-light) !important; }

/* Beheerbalk en meldingen ------------------------------------------------ */
.ib-adminbar { background: var(--ib-ink); color: #eee; font-size: .875rem; padding: .35rem 0; }
.ib-adminbar a { color: #fff; text-decoration: none; }
.ib-adminbar a:hover { color: var(--ib-teal-light); }
.ib-notice { padding: .6rem 0; font-size: .95rem; }
.ib-notice-warning { background: #fff4d6; color: #5c4700; }
.ib-notice a { margin-left: .5rem; font-weight: 700; color: inherit; }

/* Kopbalk --------------------------------------------------------------- */
.ib-header { background: #fff; position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.ib-header-scrolled { box-shadow: 0 4px 18px rgba(47, 52, 55, .08); border-bottom-color: var(--ib-line); }
.ib-header .navbar { min-height: 96px; }
.ib-brand img { height: 64px; width: auto; display: block; }
.ib-nav { gap: .15rem; }
.ib-nav .nav-link { color: #555; font-weight: 700; font-size: .98rem; padding: .55rem .9rem !important; border-radius: 999px; transition: background .15s, color .15s; }
.ib-nav .nav-link:hover, .ib-nav .nav-link:focus-visible { background: var(--ib-sand-light); color: var(--ib-ink); }
.ib-nav .nav-link.active { background: var(--ib-teal-50); color: var(--ib-teal-darker); }
.ib-dropdown { border: 1px solid var(--ib-line); border-radius: 12px; box-shadow: var(--ib-shadow); padding: .5rem; min-width: 18rem; }
.ib-dropdown .dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.ib-dropdown .dropdown-item .k-icon { color: var(--ib-teal); }
.ib-dropdown .dropdown-item:active { background: var(--ib-teal); }
.ib-utility { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: .35rem .9rem 0; font-size: .9rem; }
.ib-login-link { color: var(--ib-ink); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.ib-login-link:hover { color: var(--ib-teal-dark); }
.navbar-toggler { border: 1px solid var(--ib-line); padding: .45rem .6rem; font-size: 1.3rem; }
@media (max-width: 991.98px) {
    .ib-header .navbar { min-height: 76px; }
    .ib-brand img { height: 50px; }
    .ib-nav { padding: .75rem 0; }
    .ib-utility { justify-content: flex-start; padding: 0 0 1rem; }
}

/* Secties --------------------------------------------------------------- */
.ib-section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.ib-section-tight { padding: 2.5rem 0; }
.ib-section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.ib-section-head.text-center { margin-left: auto; margin-right: auto; }
.ib-band-sand { background: var(--ib-sand); }
.ib-band-light { background: var(--ib-sand-light); }
.ib-band-teal { background: linear-gradient(135deg, var(--ib-teal-dark), var(--ib-teal)); color: #fff; }
.ib-band-teal h2, .ib-band-teal h3 { color: #fff; }

/* Hero met ScrollView ----------------------------------------------------- */
.ib-hero { padding-top: .5rem; }
.ib-hero .k-scrollview { border-radius: var(--ib-radius) var(--ib-radius) 0 0; overflow: hidden; background: #8f8a86; border: 0; }
.ib-hero .k-scrollview img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.ib-hero-intro { background: var(--ib-sand); border-radius: 0 0 var(--ib-radius) var(--ib-radius); padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem); }
.ib-hero-intro h1 { color: #4d4d4d; font-weight: 800; }
.ib-hero-intro .ib-lead { color: #3d3d3d; }
.ib-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Pijlers: de ronde teal iconen van de oude site ---------------------------- */
.ib-pillar { text-align: center; padding: 0 1rem; }
.ib-pillar-icon { width: 104px; height: 104px; border-radius: 50%; background: var(--ib-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 44px; margin-bottom: 1.25rem; box-shadow: 0 10px 24px rgba(44, 155, 175, .28); }
.ib-pillar-icon .k-icon { font-size: 44px; }
.ib-pillar h3 { margin-bottom: .5rem; }
.ib-pillar .ib-badge { margin-left: .35rem; vertical-align: middle; }
.ib-more { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.ib-more::after { content: "→"; transition: transform .15s; }
.ib-more:hover::after { transform: translateX(3px); }

/* Kaarten ------------------------------------------------------------------ */
.ib-card { background: #fff; border: 1px solid var(--ib-line); border-radius: var(--ib-radius); box-shadow: var(--ib-shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.ib-card > :last-child { margin-bottom: 0; }
.ib-tool-card { height: 100%; display: flex; flex-direction: column; border-radius: var(--ib-radius) !important; border: 1px solid var(--ib-line) !important; box-shadow: var(--ib-shadow); overflow: hidden; }
.ib-tool-card .k-card-header { background: var(--ib-sand-light); border-bottom: 1px solid var(--ib-line); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem; }
.ib-tool-card .k-card-body { padding: 1.5rem; flex: 1; }
.ib-tool-card .k-card-title { font-weight: 800; font-size: 1.15rem; }
.ib-tool-card .k-card-actions { padding: 0 1.5rem 1.5rem; gap: .5rem; flex-wrap: wrap; }
.ib-tool-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--ib-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ib-tool-icon .k-icon { font-size: 26px; }
.ib-price { font-size: 1.6rem; font-weight: 800; color: var(--ib-ink); }
.ib-price small { font-size: .85rem; font-weight: 600; color: var(--ib-muted); }
.ib-check-list { list-style: none; padding: 0; margin: 0; }
.ib-check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.ib-check-list li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ib-teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231f7a8b' d='M6.2 11.3 3 8.1l1.1-1.1 2.1 2.1 5.7-5.7L13 4.5z'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* Stappen (werkwijze) ------------------------------------------------------- */
.ib-steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ib-step { background: #fff; border-radius: var(--ib-radius); padding: 1.5rem; border: 1px solid var(--ib-line); position: relative; }
.ib-step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--ib-teal); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.ib-step > :last-child { margin-bottom: 0; }

/* Paginakop voor binnenpagina's ---------------------------------------------- */
.ib-page-head { background: var(--ib-sand); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.ib-page-head h1 { color: #4d4d4d; margin-bottom: .5rem; }
.ib-page-head .ib-lead { color: #444; }
.ib-breadcrumb { font-size: .875rem; margin-bottom: .75rem; }
.ib-breadcrumb a { color: #555; }

/* Lopende tekst ---------------------------------------------------------------- */
.ib-prose { max-width: 48rem; }
.ib-prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.ib-prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.ib-prose table { width: 100%; margin: 1rem 0 1.5rem; border-collapse: collapse; font-size: .95rem; }
.ib-prose th, .ib-prose td { border-bottom: 1px solid var(--ib-line); padding: .6rem .5rem; vertical-align: top; text-align: left; }
.ib-prose th { width: 28%; color: var(--ib-muted); font-weight: 700; }
.ib-legal-meta { color: var(--ib-muted); font-size: .9rem; }

/* Account (aanmelden, registreren) in de opzet van de oude site: formulier links, zijbalk rechts */
.ib-account { padding: clamp(2rem, 5vw, 4rem) 0; }
.ib-account-panel { background: #fff; border: 1px solid var(--ib-line); border-radius: var(--ib-radius); box-shadow: var(--ib-shadow); padding: clamp(1.5rem, 4vw, 2.5rem); }
.ib-account-panel h1 { font-size: 1.85rem; }
.ib-well { background: var(--ib-sand-light); border-radius: var(--ib-radius); padding: 1.5rem; }
.ib-well h2 { font-size: 1.1rem; }
.ib-well ul { list-style: none; padding: 0; margin: 0; }
.ib-well li a { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; font-weight: 700; text-decoration: none; }
.ib-well li a.active { color: var(--ib-ink); }
.ib-form .k-form-field, .ib-field { margin-bottom: 1.1rem; }
.ib-form label, .ib-field > label { font-weight: 700; margin-bottom: .3rem; display: block; }
.ib-field .field-validation-error, .ib-form .field-validation-error, .text-danger { color: #b3261e !important; font-size: .9rem; }
.ib-field-hint { font-size: .85rem; color: var(--ib-muted); margin-top: .25rem; }
.ib-password { position: relative; }
.ib-password .toggle-password { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--ib-muted); z-index: 2; }
.ib-password .k-input-inner { padding-right: 2.5rem; }
.ib-strength { height: 6px !important; margin-top: .4rem; }
.ib-strength.ib-weak .k-selected { background: #d9534f; }
.ib-strength.ib-medium .k-selected { background: #e0a100; }
.ib-strength.ib-strong .k-selected { background: #2e8b57; }
.ib-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ib-code-input .k-input-inner { font-size: 1.4rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.ib-recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; font-family: Consolas, monospace; font-size: 1.05rem; background: var(--ib-sand-light); border-radius: 10px; padding: 1rem 1.25rem; }
.ib-qr { background: #fff; border: 1px solid var(--ib-line); border-radius: 12px; padding: 12px; display: inline-block; }
.ib-secret { font-family: Consolas, monospace; background: var(--ib-sand-light); padding: .2rem .5rem; border-radius: 6px; word-break: break-all; }

/* Mijn omgeving ------------------------------------------------------------------ */
.ib-status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; }
.ib-status-ok { color: #2e7d4f; }
.ib-status-todo { color: #9a6700; }
.ib-status-off { color: var(--ib-muted); }
.ib-stat { font-size: 2rem; font-weight: 800; color: var(--ib-teal-dark); line-height: 1; }
.ib-empty-state { text-align: center; padding: 3rem 1.5rem; }
.ib-empty-icon { font-size: 48px; color: var(--ib-teal); margin-bottom: 1rem; }
.ib-error-art { display: block; width: min(280px, 70%); height: auto; margin: 0 auto 1.25rem; }

/* Kendo-onderdelen ------------------------------------------------------------ */
.k-button { font-weight: 700; }
.k-button-lg { padding-inline: 1.4rem; }
.k-grid { border-radius: 10px; overflow: hidden; font-size: .95rem; }
.k-expander { border-radius: 10px !important; margin-bottom: .75rem !important; border-color: var(--ib-line) !important; }
.k-expander-title { font-weight: 700; color: var(--ib-ink) !important; text-transform: none !important; font-size: 1.02rem; }
.k-stepper .k-step-label { font-weight: 700; }
.k-badge { font-weight: 700; }
.lc-row-muted, .ib-row-muted { color: var(--ib-muted); }
.ib-map { height: 320px; border-radius: var(--ib-radius); overflow: hidden; border: 1px solid var(--ib-line); }

/* Voettekst -------------------------------------------------------------- */
.ib-footer { background: var(--ib-ink); color: #d9d6d3; padding: 3.5rem 0 1.5rem; margin-top: 0; font-size: .95rem; }
.ib-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.ib-footer a { color: #fff; text-decoration: none; }
.ib-footer a:hover { color: var(--ib-teal-light); text-decoration: underline; }
.ib-footer address { font-style: normal; line-height: 1.8; }
.ib-footer ul li { margin-bottom: .35rem; }
.ib-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: #a9a5a2; }

@media print {
    .ib-main { padding: 0; }
    .ib-card { box-shadow: none; border: 0; }
}

/* Beheermenu */
.ib-admin-nav { display: flex; flex-wrap: wrap; gap: .35rem; background: var(--ib-sand-light); border-radius: var(--ib-radius); padding: .5rem; }
.ib-admin-nav a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--ib-ink); }
.ib-admin-nav a:hover { background: #fff; }
.ib-admin-nav a.active { background: var(--ib-teal); color: #fff; }

/* Registratie: documenten in een scrollbaar vak binnen het TabStrip. */
.ib-document-scroll { max-height: 340px; overflow-y: auto; padding: .25rem 1rem .5rem 0; font-size: .95rem; }
.ib-step-panel { border: 0; padding: 0; margin: 0; }

/* Alleen zichtbaar in de bewerkmodus, bijvoorbeeld de vraag van een ExpansionPanel. */
.ib-edit-only { display: none; }
.ib-edit-mode .ib-edit-only { display: block; font-weight: 700; color: var(--ib-teal-dark); }

