/* Slimme Start — header, afsluiter en footer in één navy, met schuine gele randen
   Bestand: /app/assets/css/kop-navy.css
   Wordt als laatste geladen in app/views/publiek_top.php, zodat andere css dit niet overschrijft. */

:root {
  --kop-navy: #121a3f;
  --kop-geel: #FFD54A;
  --kop-geel-hover: #FFE27A;
  --kop-lijn: rgba(255, 255, 255, .14);
}

/* =========================================================
   HEADER
   ========================================================= */
body .pk-kop {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--kop-navy);
  color: #fff;
  border-bottom: 0;
  box-shadow: none;
  overflow: visible;
  transition: height .35s ease, box-shadow .35s ease;
}

/* Desktop: logo links, menu in het midden, knoppen rechts */
@media (min-width: 900px) {
  body .pk-kop {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 56px;
    height: 88px;
  }
  body .pk-kop .pk-nav { display: flex; justify-content: center; gap: 40px; }
  body .pk-kop .pk-kop-rechts { display: flex; align-items: center; gap: 28px; }
}

/* Logo: groot lampje dat over de schuine rand hangt */
body .pk-kop .pk-logo {
  position: relative;
  z-index: 2;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 27px;
  text-decoration: none;
  white-space: nowrap;
  perspective: 600px;
  transition: font-size .35s ease;
}
body .pk-kop .pk-lampje {
  display: block;
  height: 112px;
  width: auto;
  margin: 26px 0 -26px;
  background: none;
  border-radius: 0;
  padding: 0;
  filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .35));
  transform-style: preserve-3d;
  transition: height .35s ease, margin .35s ease, filter .35s ease;
}
body .pk-kop .pk-logo--intro .pk-lampje { animation: pkLampjeDraai 1.1s cubic-bezier(.4, 0, .2, 1) .15s both; }
body .pk-kop .pk-logo:hover .pk-lampje,
body .pk-kop .pk-logo:focus-visible .pk-lampje { animation: pkLampjeDraaiOpnieuw 1.1s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes pkLampjeDraai { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes pkLampjeDraaiOpnieuw { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

/* Menu en inloggen: wit, gele onderstreep bij hover */
body .pk-kop .pk-nav a,
body .pk-kop .pk-inloggen {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(var(--kop-geel), var(--kop-geel)) 0 100% / 0 3px no-repeat;
  padding: 6px 0;
  transition: background-size .2s ease;
}
body .pk-kop .pk-nav a:hover,
body .pk-kop .pk-inloggen:hover,
body .pk-kop .pk-nav a:focus-visible,
body .pk-kop .pk-inloggen:focus-visible { color: #fff; background-size: 100% 3px; }

/* Knop: geel, gewone rechthoek */
body .pk-kop .pk-kop-knop {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--kop-geel);
  color: var(--kop-navy);
  font-weight: 700;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: none; /* gewoon een rechthoek, zoals de rest van de huisstijl */
  transition: background .2s ease, transform .15s ease;
}
body .pk-kop .pk-kop-knop:hover,
body .pk-kop .pk-kop-knop:focus-visible { background: var(--kop-geel-hover); color: var(--kop-navy); transform: translateY(-2px); }

body .pk-kop a:focus-visible { outline: 2px solid var(--kop-geel); outline-offset: 4px; }

/* Iconen bij Inloggen (deur met pijl) en Gratis beginnen (camera): lijn-iconen, even dik als de letters */
body .pk-kop .pk-icoon,
body .pk-kop .pk-icoon svg { display: block; width: 20px; height: 20px; flex: none; }
body .pk-kop .pk-inloggen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none; /* de gele onderstreep staat hieronder alleen onder de tekst */
}
body .pk-kop .pk-inloggen-tekst {
  background: linear-gradient(var(--kop-geel), var(--kop-geel)) 0 100% / 0 3px no-repeat;
  padding: 6px 0;
  transition: background-size .2s ease;
}
body .pk-kop .pk-inloggen:hover,
body .pk-kop .pk-inloggen:focus-visible { background: none; }
body .pk-kop .pk-inloggen:hover .pk-inloggen-tekst,
body .pk-kop .pk-inloggen:focus-visible .pk-inloggen-tekst { background-size: 100% 3px; }
body .pk-kop .pk-inloggen .pk-icoon { transition: transform .2s ease; }
body .pk-kop .pk-inloggen:hover .pk-icoon { transform: translateX(2px); }
body .pk-kop .pk-kop-knop { gap: 10px; }

/* Na scrollen: compacte balk, klein lampje */
body .pk-kop.pk-kop--klein { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
@media (min-width: 900px) {
  body .pk-kop.pk-kop--klein { height: 64px; }
}
body .pk-kop.pk-kop--klein .pk-logo { font-size: 21px; gap: 10px; }
body .pk-kop.pk-kop--klein .pk-lampje { height: 34px; margin: 0; filter: none; }
body .pk-kop.pk-kop--klein .pk-kop-knop { height: 40px; }

/* Schuine gele rand onder de header */
.pk-schuin {
  position: relative;
  height: 64px;
  margin-top: -1px;
}
.pk-schuin::before,
.pk-schuin::after { content: ""; position: absolute; inset: 0; }
.pk-schuin::before { background: var(--kop-geel); clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%); }
.pk-schuin::after  { background: var(--kop-navy); clip-path: polygon(0 0, 100% 0, 100% 18%, 0 82%); }

/* =========================================================
   AFSLUITER ("Maak vanavond nog de eerste quiz")
   ========================================================= */
.pk-schuin-onder {
  position: relative;
  height: 64px;
  margin-bottom: -1px;
}
.pk-schuin-onder::before,
.pk-schuin-onder::after { content: ""; position: absolute; inset: 0; }
.pk-schuin-onder::before { background: var(--kop-geel); clip-path: polygon(0 0, 100% 70%, 100% 100%, 0 100%); }
.pk-schuin-onder::after  { background: var(--kop-navy); clip-path: polygon(0 18%, 100% 82%, 100% 100%, 0 100%); }

body .pk-schuin-onder + .fr-slot { margin-top: 0; }
body .fr-slot,
body .fr-slot .fr-slot-binnen { background: var(--kop-navy); }

/* De afsluiter kleurt zijn zijkanten tot de rand van het scherm in (oude kleur #14213d).
   Die zijkanten krijgen hier ook de nieuwe navy, en blijven binnen de hoogte van het blok. */
body .fr-slot {
  box-shadow: 0 0 0 100vmax var(--kop-navy);
  clip-path: inset(0 -100vmax);
}
body .fr-slot::before,
body .fr-slot::after {
  background-color: var(--kop-navy);
  border-color: var(--kop-navy);
}

/* Knop in de afsluiter: zelfde hoekige vorm als "Gratis beginnen" */
body .fr-slot .fr-knop {
  border-radius: 0 !important;
  background: var(--kop-geel);
  color: var(--kop-navy);
  clip-path: none;
  transition: background .2s ease, transform .15s ease;
}
body .fr-slot .fr-knop:hover,
body .fr-slot .fr-knop:focus-visible { background: var(--kop-geel-hover); color: var(--kop-navy); transform: translateY(-2px); }

/* =========================================================
   FOOTER: zelfde navy, dun lijntje als scheiding
   ========================================================= */
body .pk-voet {
  background: var(--kop-navy);
  border-top: 1px solid var(--kop-lijn);
}

/* =========================================================
   MOBIEL
   ========================================================= */
@media (max-width: 899px) {
  body .pk-kop .pk-logo { font-size: 21px; gap: 10px; }
  body .pk-kop .pk-lampje { height: 68px; margin: 14px 0 -14px; }
  body .pk-kop.pk-kop--klein .pk-lampje { height: 30px; margin: 0; }
  .pk-schuin, .pk-schuin-onder { height: 40px; }
}
@media (max-width: 600px) {
  body .pk-kop .pk-lampje { height: 56px; margin: 10px 0 -10px; }
  /* Op de telefoon alleen het deur-icoon bij Inloggen, zodat de gele knop altijd past */
  body .pk-kop .pk-inloggen-tekst {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  body .pk-kop .pk-inloggen { padding: 10px 6px; }
  body .pk-kop .pk-inloggen .pk-icoon { width: 24px; height: 24px; }
  body .pk-kop .pk-kop-knop { padding: 0 16px; gap: 8px; }
}

/* Minder beweging aan op telefoon/computer */
@media (prefers-reduced-motion: reduce) {
  body .pk-kop .pk-lampje { animation: none !important; }
  body .pk-kop, body .pk-kop * { transition: none !important; }
}
