:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211c;
  background: #f3f5f2;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(45, 94, 69, .14), transparent 38rem),
    #f3f5f2;
}

.portaal {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px) 0 16px;
}

.kop { margin-bottom: 16px; }

.merk {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #294b38;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
}

.merkbeeld {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #294b38;
  font-size: 16px;
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.systemen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.systeem { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.systeem .tegel { flex: 1; }

.apart-venster {
  align-self: flex-end;
  padding: 8px 10px;
  border-radius: 8px;
  color: #294b38;
  font-size: .9rem;
  font-weight: 650;
}

.apart-venster:hover { background: #e5ece5; }

.tegel {
  --kleur: #1f2937;
  --licht: #eef0f3;
  position: relative;
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--kleur), transparent 78%);
  border-radius: 18px;
  color: var(--kleur);
  background: linear-gradient(145deg, #fff 0%, var(--licht) 100%);
  box-shadow: 0 12px 34px rgba(24, 39, 30, .08);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tegel::after {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--kleur), transparent 92%);
  content: "";
}

.tegel:hover,
.tegel:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--kleur), transparent 55%);
  box-shadow: 0 20px 48px rgba(24, 39, 30, .14);
  outline: none;
}

.tegel:focus-visible { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--kleur); }
.tegel--erp { --kleur: #1f2937; --licht: #f5f6fa; }
.tegel--uren { --kleur: #5e6a74; --licht: #e8ecef; }
.tegel--percelen { --kleur: #5b6f32; --licht: #ecf0e1; }
.tegel--kompas { --kleur: #174f5b; --licht: #e2eef0; }
.tegel--financien { --kleur: #783b52; --licht: #f3e6eb; }

.tegel__icoon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--kleur);
}

.tegel--uren .tegel__icoon {
  box-shadow: inset 0 -4px #c49345;
}

.tegel__icoon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.tegel__naam {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -.025em;
}

.tegel__uitleg {
  margin-top: 3px;
  color: var(--kleur);
  font-size: 14px;
  line-height: 1.4;
}

.tegel__open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 750;
}

.tegel__open span { font-size: 18px; line-height: 1; transition: transform .18s ease; }
.tegel:hover .tegel__open span { transform: translateX(4px); }

.portaal-bovenbalk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.werknemers-link {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid #dededd;
  border-radius: 10px;
  background: #fff;
  color: #5b5065;
  font-weight: 750;
  text-decoration: none;
}

.werknemers-link:hover { background: #f5f5f4; }
.werknemers-link span { font-weight: 500; }

@media (min-width: 900px) {
  .systemen { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 519px) {
  .portaal { width: calc(100% - 28px); }
  .systemen { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tegel, .tegel__open span { transition: none; }
}
