/* Bip – startpagina met de groepenkiezer */
body.start { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 0 20px 40px; }

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px 20px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.back-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px 0 30px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 3px 0 #dcd8cf;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.02em;
}
.hero h1 span {
  color: var(--red);
  display: inline-block;
  animation: wiggle 3.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-6deg); } 90% { transform: rotate(5deg); } 95% { transform: rotate(-3deg); } }
.lead { max-width: 30em; margin: 18px 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; color: #34312c; }

.hero-bip { position: relative; display: grid; place-items: center; }
.hero-bip img { position: relative; width: min(340px, 80%); height: auto; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 18px 0 rgba(0,0,0,.08)); }
.hero-glow {
  position: absolute;
  width: min(380px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe38a 0%, #ffe38a00 70%);
}
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- groepen ---------- */
.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.group {
  --c: #6fb45c;
  --edge: #4f8a3e;
  --soft: #9ed98a;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon name" "icon world" "what what" "stars stars";
  column-gap: 14px;
  padding: 20px 20px 18px;
  border-radius: 26px;
  background: var(--c);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 0 var(--edge);
  transition: transform .1s ease, box-shadow .1s ease;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
}
.group::after {
  /* voortgangsbalkje onderin */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 6px;
  width: var(--done, 0%);
  background: rgba(255,255,255,.7);
  transition: width .6s ease;
}
.group:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--edge); }
.group:active { transform: translateY(6px); box-shadow: 0 2px 0 var(--edge); }
.g-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,.22);
  font-size: 2.4rem;
}
.g-name { grid-area: name; align-self: end; font-size: 1.6rem; font-weight: 900; line-height: 1.1; }
.g-world { grid-area: world; align-self: start; font-weight: 800; opacity: .9; }
.g-what { grid-area: what; margin-top: 14px; font-weight: 700; opacity: .92; }
.g-stars { grid-area: stars; margin-top: 8px; font-weight: 900; color: #fff4c2; min-height: 1.4em; }

.g3 { --c: #5fa84c; --edge: #3f7a31; }
.g4 { --c: #e0932b; --edge: #a86a15; }
.g5 { --c: #2f7d45; --edge: #1d5a2f; }
.g6 { --c: #6b5ca5; --edge: #4a3e7c; }
.g7 { --c: #5a6b8a; --edge: #3e4b64; }
.g8 { --c: #262c63; --edge: #12163a; }

/* ---------- info ---------- */
.info {
  margin-top: 44px;
  padding: 26px 28px;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 5px 0 #dcd8cf;
}
.info h2 { margin: 0 0 12px; font-size: 1.35rem; }
.info ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.info li { position: relative; padding-left: 26px; color: #34312c; }
.info li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--yellow-dark); }

.foot {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 20px 36px;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}
.foot p { margin: 4px 0; }
.foot .credits { font-size: .82rem; }

@media (max-width: 900px) {
  .groups { grid-template-columns: repeat(2, 1fr); }
  .info ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 0 16px 32px; }
  .site-bar { padding: 12px 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 0; gap: 8px; }
  .hero-bip { order: -1; }
  .hero-bip img { width: 200px; }
  .lead { margin-left: auto; margin-right: auto; }
  .groups { grid-template-columns: 1fr; gap: 14px; }
  .g-icon { width: 60px; height: 60px; font-size: 2rem; }
  .info { padding: 22px 20px; }
}
