/* ══════════════════════════════════════════════════════════════
   NIEUW ONTWERP (verbeterronde 5) — zie js/ontwerp.js
   Alles hier geldt alleen op het scherm en alleen als <html> de klasse
   'ontwerp-nieuw' heeft. In print en in de kopie bestaat dit ontwerp niet:
   daar geldt de opmaak uit index.html, zodat een afdruk of kopie exact
   gelijk blijft. Niets hier mag de tekeningen zelf raken (.fa-canvas,
   .ba-canvas, .ht-canvas en alles daarbinnen).
   Kleuren: achtergrond #FBF7F3, inkt #1F3441, zacht #51636E, blauw #4A6E8A.
══════════════════════════════════════════════════════════════ */
@media screen {

/* ── Pagina en blauwe balk ── */
/* ook op de pagina zelf: body is één scherm hoog, daaronder kwam anders de oude achtergrond terug */
html.ontwerp-nieuw, html.ontwerp-nieuw body { background: #FBF7F3; }
html.ontwerp-nieuw #app { max-width: none; }
html.ontwerp-nieuw .app-header { min-height: 64px; padding: 10px 20px; gap: 12px; width: auto !important; margin: 0 !important; }
html.ontwerp-nieuw .app-header h1 { font: 400 21px/1.2 'Castoro', Georgia, serif; letter-spacing: .005em; }
html.ontwerp-nieuw #hdr-logo { width: 31px; height: 36px; }
html.ontwerp-nieuw #app[data-pagina="home"] .app-header { display: none; }

/* Breedte: FA en BA tot 1240, de HT regelt zijn eigen breedte, de startpagina
   loopt door tot de randen, al het andere houdt de kolom van 760. */
html.ontwerp-nieuw #app[data-pagina="fa"] .app-main,
html.ontwerp-nieuw #app[data-pagina="ba"] .app-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 28px 48px; }
html.ontwerp-nieuw #app[data-pagina="home"] .app-main { padding: 0; }
html.ontwerp-nieuw #app:not([data-pagina="home"]):not([data-pagina="fa"]):not([data-pagina="ba"]):not([data-pagina="ht"]) .app-main { width: 100%; max-width: 760px; margin: 0 auto; }

/* ── Naam boven de tekening ── */
html.ontwerp-nieuw #main .title-row { display: block !important; padding: 4px 0 12px !important; }
html.ontwerp-nieuw #main .title-row > span:first-child { display: block; margin: 0 0 4px; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--vel-k, #3F6587) !important; }
html.ontwerp-nieuw #main .title-row .title-inp { display: block; width: 100%; padding: 0 0 2px !important; border-radius: 0; border-bottom: 1px dashed transparent !important;
  font: 400 27px/1.2 'Castoro', Georgia, serif !important; letter-spacing: -.01em; color: #1F3441 !important; text-overflow: ellipsis; }
html.ontwerp-nieuw #main .title-row .title-inp::placeholder { font-style: normal; color: #9AA7B0; }
html.ontwerp-nieuw #main .title-row .title-inp:hover { border-bottom-color: rgba(31,52,65,.28) !important; }
html.ontwerp-nieuw #main .title-row .title-inp:focus { border-bottom: 1px solid #4A6E8A !important; }
/* de instellingen van een BA: zelfde knopjes, zonder de gekleurde balk eromheen */
html.ontwerp-nieuw #main .cfg-bar { margin: 0 0 16px; padding: 0 !important; background: transparent !important; border-bottom: 0 !important; }

/* ── De gekleurde rand met de knoppen, vast aan de tekening ── */
html.ontwerp-nieuw .vel-rand { box-sizing: border-box; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 52px;
  padding: 8px 10px 20px 18px; margin: 0 0 -12px; border-radius: 16px 16px 0 0; background: #E9EFF5; }
html.ontwerp-nieuw .vel-rand-ht { padding-bottom: 8px; margin-bottom: 0; }
html.ontwerp-nieuw .vel-links { display: flex; align-items: center; min-width: 0; }
html.ontwerp-nieuw .vel-rand .theme-picker,
html.ontwerp-nieuw .group-all-bar .theme-picker { padding: 0 !important; opacity: 1 !important; gap: 5px !important; }
html.ontwerp-nieuw .vel-rand .action-bar { margin: 0 0 0 auto; gap: 2px; align-items: center; justify-content: flex-end; }
html.ontwerp-nieuw .vel-rand .btn { height: 36px; padding: 0 12px !important; gap: 6px; border: 0; border-radius: 999px; background: transparent; box-shadow: none;
  font-size: 13.5px !important; font-weight: 600; color: #1F3441; white-space: nowrap; }
html.ontwerp-nieuw .vel-rand .btn svg, html.ontwerp-nieuw .group-all-bar .btn svg { display: block; flex: none; }
html.ontwerp-nieuw .vel-rand .font-btns { gap: 0 !important; }
html.ontwerp-nieuw .vel-rand .font-btns .btn,
html.ontwerp-nieuw .vel-rand [data-knop="ongedaan"],
html.ontwerp-nieuw .vel-rand .vol-btn { padding: 0 9px !important; min-width: 36px; color: #51636E; }
html.ontwerp-nieuw .vel-rand [data-knop="del"],
html.ontwerp-nieuw .group-all-bar [data-knop="del"] { padding: 0 9px !important; min-width: 36px; color: #A4503F !important; }
html.ontwerp-nieuw .vel-streep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: rgba(31,52,65,.22); }
html.ontwerp-nieuw .groot-btn { display: none !important; }
html.ontwerp-nieuw .vel-streep + .vel-streep { display: none; }   /* nooit twee streepjes naast elkaar */
html.ontwerp-nieuw .vel-rand .kopie-keuze { margin: 0 4px; }
/* in een groep presenteer je de hele groep: per analyse geen knop Presenteer en geen Volledig scherm */
html.ontwerp-nieuw .action-bar.group-member [data-knop="pres"],
html.ontwerp-nieuw .action-bar.group-member .vol-btn,
html.ontwerp-nieuw .action-bar.group-member .vel-streep.s3 { display: none !important; }
html.ontwerp-nieuw .tek-wrap { padding: 0 0 30px !important; }
html.ontwerp-nieuw .group-section { border-top: 0 !important; margin-top: 30px !important; }

/* ── Knoppen voor de hele groep ── */
html.ontwerp-nieuw .group-all-bar { top: 64px; gap: 6px; margin: -8px 0 10px; padding: 10px 0 12px; background: #FBF7F3; border-bottom: 0; }
html.ontwerp-nieuw .group-all-bar > span:first-child { display: none; }
html.ontwerp-nieuw .group-all-bar .btn { height: 36px; padding: 0 13px !important; gap: 6px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px rgba(31,52,65,.16); font-size: 13.5px !important; font-weight: 600; color: #1F3441; white-space: nowrap; }
html.ontwerp-nieuw .group-all-bar .vol-btn,
html.ontwerp-nieuw .group-all-bar [data-knop="del"] { background: transparent; box-shadow: none; }
html.ontwerp-nieuw .group-all-bar .vol-btn { padding: 0 9px !important; color: #51636E; }

@media (hover: hover) {
  html.ontwerp-nieuw .vel-rand .btn:hover { background: rgba(255,255,255,.72); transform: none; box-shadow: none; }
  html.ontwerp-nieuw .group-all-bar .btn:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(31,52,65,.34); }
  html.ontwerp-nieuw .group-all-bar .vol-btn:hover,
  html.ontwerp-nieuw .group-all-bar [data-knop="del"]:hover { background: rgba(31,52,65,.07); box-shadow: none; }
}

/* ── HT: naam en rand boven het schema ── */
html.ontwerp-nieuw .ht-chrome { padding-top: 20px !important; }
html.ontwerp-nieuw .ht-scroll-wrap { margin-top: 0 !important; }

/* ── Startpagina ── */
html.ontwerp-nieuw .nw-band { color: #fff; background: linear-gradient(115deg, #4A6E8A 0%, #5E79B4 38%, #9A7DC4 66%, #E8907A 100%); }
html.ontwerp-nieuw .nw-band-in { max-width: 1240px; margin: 0 auto; padding: 30px 28px 96px; }
html.ontwerp-nieuw .nw-band-kop { display: flex; align-items: center; gap: 14px; }
html.ontwerp-nieuw .nw-logo { display: block; flex: none; width: 40px; height: 46px; object-fit: contain; }
html.ontwerp-nieuw .nw-glas { height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.16);
  color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
html.ontwerp-nieuw .nw-glas-ico { display: flex; align-items: center; justify-content: center; width: 34px; padding: 0; margin-right: -6px; }
html.ontwerp-nieuw .nw-band h2 { flex: 1; min-width: 0; margin: 0; font: 400 42px/1.1 'Castoro', Georgia, serif; letter-spacing: -.015em; }
html.ontwerp-nieuw .nw-band p { max-width: 560px; margin: 10px 0 0 54px; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.92); }
html.ontwerp-nieuw .nw-in { position: relative; max-width: 1240px; margin: -66px auto 0; padding: 0 28px 40px; color: #1F3441; }

html.ontwerp-nieuw .nw-tegels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
html.ontwerp-nieuw .nw-tegel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 14px 14px 22px;
  border: 0; border-radius: 20px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(31,52,65,.07), 0 18px 36px -26px rgba(23,45,66,.4); transition: transform .16s ease; }
html.ontwerp-nieuw .nw-tegel > i { display: flex; align-items: center; justify-content: center; width: 100%; height: 118px; margin-bottom: 8px; border-radius: 12px;
  background: #E6EEF6; color: #3F6283; font-style: normal; }
html.ontwerp-nieuw .nw-tegel:nth-child(3n+2) > i { background: #EAE8F6; }
html.ontwerp-nieuw .nw-tegel:nth-child(3n) > i { background: #F2E9F2; }
html.ontwerp-nieuw .nw-tegel > i svg { width: 132px; height: 82px; }
html.ontwerp-nieuw .nw-emoji { font-size: 44px; line-height: 1; }
html.ontwerp-nieuw .nw-tegel-t { min-width: 0; padding: 0 62px 0 8px; }
html.ontwerp-nieuw .nw-tegel b { display: block; font: 400 22px/1.2 'Castoro', Georgia, serif; letter-spacing: -.005em; }
html.ontwerp-nieuw .nw-tegel small { display: block; margin-top: 3px; font-size: 13.5px; color: #51636E; }
html.ontwerp-nieuw .nw-tegel u { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: #1F3441; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }

html.ontwerp-nieuw .nw-kopje { display: flex; align-items: baseline; margin: 32px 2px 14px; }
html.ontwerp-nieuw .nw-kopje h3 { flex: 1; font: 400 23px/1.2 'Castoro', Georgia, serif; letter-spacing: -.005em; }
html.ontwerp-nieuw .nw-alles-weg { border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 12.5px; color: #51636E; cursor: pointer; }
html.ontwerp-nieuw .nw-kaartjes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
html.ontwerp-nieuw .nw-kaartje { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 16px; border-radius: 16px; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(31,52,65,.08), 0 10px 22px -20px rgba(23,45,66,.35); }
html.ontwerp-nieuw .nw-soort { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--kl, #E9EFF5); color: var(--k, #4A6E8A);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
html.ontwerp-nieuw .nw-kaartje b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ontwerp-nieuw .nw-kaartje small { flex: none; font-size: 12.5px; color: #667A86; white-space: nowrap; }
html.ontwerp-nieuw .nw-weg { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -4px -6px -4px -4px; border: 0; border-radius: 8px;
  background: none; color: #8A98A2; cursor: pointer; }
/* voet van de beginpagina: de backup als kaart, daaronder één rustige regel (keuze Rik, 24-11-2026) */
html.ontwerp-nieuw .nw-voetblok { margin-top: 36px; font-size: 12.5px; line-height: 1.5; color: #667A86; }
html.ontwerp-nieuw .nw-bk { display: flex; align-items: center; gap: 12px 14px; padding: 14px 18px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(31,52,65,.08), 0 10px 22px -20px rgba(23,45,66,.35); }
html.ontwerp-nieuw .nw-bk > i { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: #E6EEF6; color: #3F6283; }
html.ontwerp-nieuw .nw-bk-t { flex: 1; min-width: 0; }
html.ontwerp-nieuw .nw-bk-t b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: #1F3441; }
html.ontwerp-nieuw .nw-bk-t small { display: block; margin-top: 2px; font-size: 13px; color: #667A86; }
html.ontwerp-nieuw .nw-bk-knop { flex: none; height: 36px; padding: 0 18px; border: 0; border-radius: 99px; background: #1F3441; color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
html.ontwerp-nieuw .nw-bk-knop:disabled { opacity: .4; cursor: default; }
html.ontwerp-nieuw .nw-bk-link, html.ontwerp-nieuw .nw-voet-regel button { border: 0; background: none; padding: 0; font: inherit; color: #3F6283;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
html.ontwerp-nieuw .nw-bk-link { flex: none; margin: 0 4px 0 6px; font-size: 13.5px; }
/* tijd voor een nieuwe backup: de kaart kleurt warm */
html.ontwerp-nieuw .nw-bk-tijd { background: #FFFCF7; box-shadow: 0 0 0 1px #EAC9A0, 0 10px 22px -20px rgba(23,45,66,.35); }
html.ontwerp-nieuw .nw-bk-tijd > i { background: #FBEBD5; color: #9A5A18; }
html.ontwerp-nieuw .nw-bk-tijd .nw-bk-t b { color: #8A4F12; }
html.ontwerp-nieuw .nw-voet-regel { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 0; margin-top: 18px; text-align: center; }
html.ontwerp-nieuw .nw-voet-regel i { padding: 0 8px; font-style: normal; color: #A9B4BC; }
html.ontwerp-nieuw .nw-voetblok a { color: #3F6283; text-decoration: none; border-bottom: 1px solid currentColor; }

html.ontwerp-nieuw .nw-glas:focus-visible, html.ontwerp-nieuw .nw-tegel:focus-visible, html.ontwerp-nieuw .nw-kaartje:focus-visible,
html.ontwerp-nieuw .nw-weg:focus-visible, html.ontwerp-nieuw .nw-voetblok button:focus-visible, html.ontwerp-nieuw .nw-alles-weg:focus-visible,
html.ontwerp-nieuw .vel-rand .btn:focus-visible, html.ontwerp-nieuw .group-all-bar .btn:focus-visible { outline: 2px solid #4A6E8A; outline-offset: 2px; }
html.ontwerp-nieuw .nw-band .nw-glas:focus-visible { outline-color: #fff; }

@media (hover: hover) {
  html.ontwerp-nieuw .nw-tegel:hover { transform: translateY(-2px); }
  html.ontwerp-nieuw .nw-glas:hover { background: rgba(255,255,255,.28); }
  html.ontwerp-nieuw .nw-kaartje:hover { box-shadow: 0 0 0 1px rgba(31,52,65,.2), 0 10px 22px -20px rgba(23,45,66,.35); }
  /* het prullenbakje op een kaartje verschijnt pas als je erboven hangt (met de tab-toets altijd) */
  html.ontwerp-nieuw .nw-weg { opacity: 0; transition: opacity .15s; }
  /* drie losse regels: een oudere Safari kent :focus-visible niet en slaat dan de hele regel over */
  html.ontwerp-nieuw .nw-kaartje:hover .nw-weg { opacity: 1; }
  html.ontwerp-nieuw .nw-weg:focus { opacity: 1; }
  html.ontwerp-nieuw .nw-weg:focus-visible { opacity: 1; }
  html.ontwerp-nieuw .nw-weg:hover { color: #A4503F; background: rgba(164,80,63,.09); }
  html.ontwerp-nieuw .nw-alles-weg:hover { color: #A4503F; }
}

/* ── Smal scherm (telefoon) ── */
@media (max-width: 700px) {
  html.ontwerp-nieuw .app-header { min-height: 60px; padding: 8px 14px; }
  html.ontwerp-nieuw #app[data-pagina="fa"] .app-main,
  html.ontwerp-nieuw #app[data-pagina="ba"] .app-main { padding: 14px 14px 40px; }
  html.ontwerp-nieuw #main .title-row .title-inp { font-size: 22px !important; }
  /* op een telefoon presenteer je niet */
  html.ontwerp-nieuw [data-knop="pres"], html.ontwerp-nieuw [data-knop="presalles"], html.ontwerp-nieuw .vol-btn { display: none !important; }
  html.ontwerp-nieuw .vel-rand { padding: 8px 8px 18px 12px; border-radius: 12px 12px 0 0; }
  html.ontwerp-nieuw .vel-rand-ht { padding-bottom: 8px; }
  html.ontwerp-nieuw .vel-rand .action-bar { margin-left: 0; justify-content: flex-start; }
  html.ontwerp-nieuw .vel-rand .btn { padding: 0 9px !important; }
  html.ontwerp-nieuw .vel-streep { margin: 0 1px; }
  html.ontwerp-nieuw .group-all-bar { top: 60px; }
  html.ontwerp-nieuw .nw-band-in { padding: 20px 16px 64px; }
  html.ontwerp-nieuw .nw-band-kop { gap: 10px; }
  html.ontwerp-nieuw .nw-logo { width: 30px; height: 35px; }
  html.ontwerp-nieuw .nw-band h2 { font-size: 27px; }
  html.ontwerp-nieuw .nw-band p { margin-left: 0; }
  html.ontwerp-nieuw .nw-bk { flex-wrap: wrap; padding: 14px; }
  html.ontwerp-nieuw .nw-bk-t { flex-basis: calc(100% - 54px); }
  html.ontwerp-nieuw .nw-bk-link { margin-left: 10px; }
  html.ontwerp-nieuw .nw-voet-regel i { display: none; }
  html.ontwerp-nieuw .nw-voet-regel span { flex-basis: 100%; }
  html.ontwerp-nieuw .nw-in { margin-top: -44px; padding: 0 14px 32px; }
  html.ontwerp-nieuw .nw-tegels { grid-template-columns: 1fr; gap: 12px; }
  html.ontwerp-nieuw .nw-tegel { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  html.ontwerp-nieuw .nw-tegel > i { flex: none; width: 76px; height: 56px; margin: 0; }
  html.ontwerp-nieuw .nw-tegel > i svg { width: 56px; height: 36px; }
  html.ontwerp-nieuw .nw-emoji { font-size: 26px; }
  html.ontwerp-nieuw .nw-tegel-t { flex: 1; padding: 0; }
  html.ontwerp-nieuw .nw-tegel b { font-size: 19px; }
  html.ontwerp-nieuw .nw-tegel u { position: static; flex: none; width: 36px; height: 36px; }
  html.ontwerp-nieuw .nw-kaartjes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html.ontwerp-nieuw .nw-tegel { transition: none; }
}

}
