/* Calcura Software — huisstijl "Strak", dezelfde tokens als calcurabouw.nl
   (calcuraai-2/frontend-web/src/index.css): DM Sans, navy koppen, Calcura-blauw spaarzaam,
   geen verloop behalve in het beeldmerk. Licht en donker volgen het systeem. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dm-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --pagina:    #FFFFFF;
  --tint:      #F6F7F9;
  --vlak:      #F0F2F5;
  --lijn:      #E2E5EA;
  --tekst:     #16191E;
  --tekst-2:   #4A5260;
  --tekst-3:   #5E6672;
  --kop:       #0B1F44;
  --blauw:     #0A5BE6;
  --band:      #071A3C;
  --op-band:   #FFFFFF;
  --op-band-2: rgba(255, 255, 255, 0.74);
  --open:      #1D6B45;
  --binnenkort:#8A4B00;
  --focus:     #0A5BE6;

  --rand-max: 1120px;
  --rand-pad: clamp(20px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pagina:    #121418;
    --tint:      #1A1D22;
    --vlak:      #22262C;
    --lijn:      #2E333A;
    --tekst:     #EEF0F3;
    --tekst-2:   #B4BAC4;
    --tekst-3:   #9AA1AC;
    --kop:       #F4F6F8;
    --blauw:     #7AABFF;
    --band:      #0E2347;
    --open:      #3FDFA9;
    --binnenkort:#FFB757;
    --focus:     #7AABFF;
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pagina);
  color: var(--tekst);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.rand {
  max-width: var(--rand-max);
  margin-inline: auto;
  padding-inline: var(--rand-pad);
}

.alleen-voorlezen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.overslaan {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--kop);
  color: var(--pagina);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.overslaan:focus { top: 12px; }

/* ---------- Kop ---------- */
.kop {
  border-bottom: 1px solid var(--lijn);
}
.kop-binnen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.merk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.merk img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
}
.woordmerk {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--kop);
  white-space: nowrap;
}
.woordmerk span { margin-left: 0.28em; color: var(--blauw); }

.menu {
  display: flex;
  gap: 4px;
}
.menu a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tekst-2);
  text-decoration: none;
  border-radius: 8px;
}
.menu a:hover { color: var(--kop); background: var(--vlak); }

@media (max-width: 540px) {
  .menu-breed { display: none; }
}

/* ---------- Intro en de drie sites ---------- */
.intro {
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}
.intro h1 {
  max-width: 21ch;
  font-size: clamp(1.875rem, 1.1rem + 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--kop);
  text-wrap: balance;
}
.lead {
  max-width: 62ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.62;
  color: var(--tekst-2);
}

/* De sites zijn het grote ding op de pagina: drie adressen als index, één regel per site. */
.sites {
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--lijn);
}
.site {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px 48px;
  padding-block: 28px;
  border-bottom: 1px solid var(--lijn);
}
/* Het hovervlak steekt iets buiten de tekstkolom uit; de lijnen blijven op de kolombreedte. */
.site::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--rand-pad) * -0.5);
  z-index: -1;
  border-radius: 6px;
  background: transparent;
}
@media (min-width: 880px) {
  .site {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: baseline;
    padding-block: 36px;
  }
}
.site-domein {
  font-size: clamp(1.75rem, 0.85rem + 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--kop);
  text-decoration: none;
  overflow-wrap: anywhere;
}
/* De hele regel is klikbaar, maar er is maar één link: het adres. */
.site-domein::after {
  content: "";
  position: absolute;
  inset: 0;
}
/* Focus op de hele regel waar de browser :has() kent; anders houdt de link zijn eigen focusrand. */
@supports selector(:has(a)) {
  .site-domein:focus-visible { outline: none; }
  .site:has(.site-domein:focus-visible)::before {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
  }
}
.site:hover::before { background: var(--tint); }
.site:hover .site-domein {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .site::before { transition: background-color 120ms ease-out; }
}

.site-tekst h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--kop);
}
.site-tekst p {
  max-width: 52ch;
  margin-top: 4px;
  color: var(--tekst-2);
}
.site-tekst .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.stip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.site-tekst .status-open { color: var(--open); }
.site-tekst .status-binnenkort { color: var(--binnenkort); }

/* ---------- Wie we zijn ---------- */
.mensen {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--tint);
  border-top: 1px solid var(--lijn);
}
.mensen-binnen {
  display: grid;
  gap: 40px 64px;
}
@media (min-width: 880px) {
  .mensen-binnen { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}
.mensen h2,
.contact h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--kop);
}
.mensen-kop p {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--tekst-2);
}
.makers {
  display: grid;
  gap: 32px;
}
.maker {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.initialen {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--pagina);
  border: 1px solid var(--lijn);
  font-weight: 700;
  color: var(--kop);
  letter-spacing: 0.02em;
}
.maker h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--kop);
}
.maker .rol {
  margin-top: 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--tekst-3);
}
.maker p:not(.rol) {
  max-width: 48ch;
  margin-top: 8px;
  color: var(--tekst-2);
}

/* ---------- Contact (donkere band, zoals op calcurabouw.nl) ---------- */
.contact {
  padding-block: clamp(56px, 8vw, 96px);
  background: var(--band);
  color: var(--op-band);
  --focus: #FFFFFF;
}
.contact h2 { color: var(--op-band); }
.contact-binnen {
  display: grid;
  gap: 48px 64px;
}
@media (min-width: 880px) {
  .contact-binnen { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.contact-zin {
  margin-top: 12px;
  color: var(--op-band-2);
}
.contact-wegen {
  display: grid;
  gap: 4px;
  margin-top: 24px;
}
.contact-wegen a {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact-wegen a:hover { text-decoration-thickness: 2px; }
.contact-tijden {
  margin-top: 16px;
  color: var(--op-band-2);
}
.contact .contact-sub {
  font-size: 1.0625rem;
  letter-spacing: 0;
}
.gegevens {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.gegevens div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.gegevens div:last-child { border-bottom: 0; padding-bottom: 0; }
.gegevens dt { color: var(--op-band-2); }
.gegevens dd { font-weight: 600; }
@media (max-width: 420px) {
  .gegevens div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- Voet ---------- */
.voet {
  padding-block: 28px;
  font-size: 0.9375rem;
  color: var(--tekst-3);
}
.voet-binnen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.voet-sites {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.voet-sites a {
  color: var(--tekst-2);
  text-underline-offset: 0.18em;
}
.voet-sites a:hover { color: var(--kop); }

/* ---------- 404 ---------- */
.niet-gevonden {
  padding-block: clamp(64px, 12vw, 140px);
}
.niet-gevonden h1 {
  font-size: clamp(1.875rem, 1.1rem + 2.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--kop);
}
.niet-gevonden p {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--tekst-2);
}
.niet-gevonden a {
  color: var(--blauw);
  font-weight: 600;
  text-underline-offset: 0.18em;
}
