/* Vormgeving afgestemd op klaarhammenecker.be.
   Lopende tekst: Poppins. Scripttitels: Grand Hotel, lokaal als woff2 (OFL 1.1).
   Nooit een zwarte achtergrond. */

@font-face {
  font-family: "Grand Hotel";
  src: url("../fonts/grand-hotel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fffae7;
  --peach: #f49c6c;
  --green: #17b276;
  --blue: #0092b7;
  --ink: #353535;
  --white: #ffffff;
  --navy-shadow: 35, 58, 138;
  --font: "Poppins", Helvetica, Arial, sans-serif;
  --script: "Grand Hotel", "Poppins", Helvetica, Arial, sans-serif;
  --card-shadow: 0 2px 18px rgba(var(--navy-shadow), 0.15);
  --radius: 12px;
}

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

html {
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

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

.site-header {
  background: var(--peach);
}

.site-header-binnen {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  height: 58px;
  width: auto;
}

.plaats {
  margin: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.shell {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

body[data-scherm="start"] .shell {
  width: min(100% - 2rem, 72rem);
}

h1 {
  margin: 0 0 0.75rem;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 13vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
  color: var(--ink);
}

h2,
#resultaat-kop,
#inschrijf-kop {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.15rem, 9vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

#vraag-kop {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--green);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--green);
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.start-layout {
  display: grid;
  gap: 1.75rem;
}

.intro-met-foto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.portret-start {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}

.klaar-mee {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.portret-resultaat {
  margin: 0.15rem 0 0;
  flex: none;
  text-align: center;
}

.portret-resultaat img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}

.portret-resultaat figcaption {
  margin-top: 0.15rem;
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
}

fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

legend {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 0.85rem;
  padding: 0;
}

.keuzes {
  display: grid;
  gap: 0.75rem;
}

.keuze {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  min-height: 3rem;
  color: var(--ink);
}

.keuze input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--green);
}

.keuze:has(input:checked) {
  border-color: var(--green);
}

.keuze:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.keuze span,
.keuze small {
  display: block;
  color: var(--ink);
}

.keuze small {
  font-size: 0.92rem;
  font-weight: 400;
}

.button {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.55em 1.4em;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: var(--white);
  color: var(--green);
}

.button.secundair {
  background: var(--white);
  color: var(--green);
}

.button.secundair:hover {
  background: var(--green);
  color: var(--white);
}

.button:disabled {
  background: #f3f3f3;
  border-color: #e2e2e2;
  color: #4e4e4e;
  cursor: not-allowed;
}

.nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.nav .button {
  flex: 1;
}

.fout,
.ok {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--card-shadow);
}

.fout {
  border-left: 4px solid var(--blue);
  margin: 0 0 1rem;
}

.fout:empty {
  display: none;
}

.ok {
  border-left: 4px solid var(--green);
}

.testmodus,
.disclaimer,
.fijn,
.schaal,
.geheugen {
  font-size: 0.95rem;
}

.voortgang-kop {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.voortgang {
  height: 0.55rem;
  background: rgba(23, 178, 118, 0.18);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.voortgang > span {
  display: block;
  height: 100%;
  width: calc(var(--nu, 0) * 1%);
  background: var(--green);
  border-radius: inherit;
}

.etiket {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
}

.etiket::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.basic,
.korting,
.formulier {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.basic {
  padding: 1.2rem 1.2rem 0.45rem;
  margin: 0 0 1rem;
}

.stand {
  margin: 0.25rem 0 0.75rem;
  font-weight: 600;
  color: var(--ink);
}

.meter {
  height: 0.55rem;
  background: rgba(0, 146, 183, 0.16);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.95rem;
}

.meter > span {
  display: block;
  height: 100%;
  width: var(--score, 50%);
  background: var(--green);
  border-radius: inherit;
}

.basic[data-niveau="growth"] .meter > span {
  background: var(--blue);
}

.stap .etiket {
  margin-right: 0.35rem;
}

.aanbod {
  margin-top: 0.2rem;
}

.korting {
  padding: 1.2rem 1.2rem 1.35rem;
  margin: 0.4rem 0 1.6rem;
}

.korting h2 {
  margin-bottom: 0.4rem;
}

.korting .code {
  font-weight: 700;
  letter-spacing: 1px;
}

.korting .button {
  width: auto;
  min-width: 12rem;
}

.formulier {
  padding: 1.2rem;
  margin-top: 0.5rem;
}

.veld {
  display: block;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.veld input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid rgba(53, 53, 53, 0.14);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font);
}

.akkoord {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.4rem 0 1rem;
}

.akkoord input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  flex: none;
  accent-color: var(--green);
}

.honingpot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tekstknop {
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: 600 1rem/1.4 var(--font);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  cursor: pointer;
  min-height: 2.75rem;
}

.tekstknop:hover {
  color: var(--blue);
}

.voet {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(53, 53, 53, 0.12);
  font-size: 0.95rem;
}

::selection {
  background: #d7f3e6;
  color: var(--ink);
}

@media (min-width: 800px) {
  .shell {
    padding-top: 2.4rem;
  }

  .start-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.75rem;
    align-items: start;
  }

  .intro-met-foto {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
    align-items: start;
  }

  .portret-start {
    width: 200px;
    height: 248px;
    border-radius: 24px;
    object-position: center 18%;
    grid-column: 2;
    grid-row: 1;
  }

  .intro-met-foto > div {
    grid-column: 1;
    grid-row: 1;
  }

  .button.start,
  .korting .button {
    width: auto;
  }
}

@media (max-width: 640px) {
  .site-header-binnen {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .logo img {
    height: 48px;
  }

  .plaats {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
