/* Startpagina en ranglijstpagina: natuurkundig thema (ruitjespapier, golf, baan), live ranglijst en bordmodus */

/* --- Kop met decor ------------------------------------------------------------- */
.startpagina main { max-width: 1080px; padding-top: 8px; }
.held {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rand);
  background-color: var(--vlak);
  /* ruitjespapier: fijne lijnen per 16 px, dikke per 80 px, zoals op de uitwerkbijlage */
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}
.held-decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.decor-lijn, .decor-golf, .decor-worp { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0.35; }
.decor-worp { stroke-dasharray: 8 10; opacity: 0.3; animation: worp 6s linear infinite; }
.decor-deeltje { fill: var(--accent); opacity: 0.8; }
.decor-kern { fill: color-mix(in srgb, var(--accent) 45%, transparent); }
.decor-draai { animation: draai 7s linear infinite; }
.decor-golf-rij { animation: golf 9s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
@keyframes golf { to { transform: translateX(450px); } }
@keyframes worp { to { stroke-dashoffset: -180; } }

.held-inhoud {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 16px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
}
.held h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.held .lead { font-size: 1.1rem; max-width: 34em; }
.klik { position: relative; color: var(--accent); white-space: nowrap; }
.klik::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 0.28em;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 Q12.5 0 25 5 T50 5 T75 5 T100 5' fill='none' stroke='%237c9cf5' stroke-width='3'/%3E%3C/svg%3E");
}
.held-knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
.held-knoppen .knop { text-decoration: none; }
.weetje { color: var(--tekst-zacht); min-height: 4.8em; max-width: 36em; margin: 0; }
.weetje.in { animation: opkomen 0.6s ease; }
.weetje-label { display: inline-block; font-weight: 700; color: var(--accent); margin-right: 4px; }
@keyframes opkomen { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.top5 { margin: 0; box-shadow: var(--schaduw); }
.top5 .bovenschrift { display: flex; align-items: center; gap: 8px; }
.top5 .ranglijst-lijst { margin-bottom: 8px; }
.top5-voet { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

@media (max-width: 820px) {
  .held-inhoud { grid-template-columns: 1fr; padding-top: 28px; }
}

/* --- Toolkaarten met iconen ------------------------------------------------------- */
.startpagina .tool { position: relative; border-top: 4px solid var(--kleur, var(--accent)); padding-top: 18px; }
.startpagina .tool:hover { border-color: var(--kleur, var(--accent)); border-top-width: 4px; transform: translateY(-3px); box-shadow: var(--schaduw); }
.startpagina .tool .bovenschrift { color: var(--kleur, var(--accent)); }
.tool-icoon {
  width: 44px; height: 44px; float: right; margin: -4px -4px 4px 10px;
  color: var(--kleur, var(--accent)); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.4s cubic-bezier(.3,1.6,.5,1);
}
.tool:hover .tool-icoon { transform: rotate(-8deg) scale(1.12); }

/* --- Live ranglijst ------------------------------------------------------------------ */
.live-stip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fout); text-transform: uppercase; letter-spacing: 0.06em; }
.live-stip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--fout); animation: live-pols 1.6s ease-in-out infinite; }
@keyframes live-pols { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
.ranglijst-lijst li { will-change: transform; }
.ranglijst-lijst li.nieuw { animation: nieuw 2.2s ease; }
.ranglijst-lijst li.hoger { animation: hoger 2.2s ease; }
@keyframes nieuw { 0% { background: color-mix(in srgb, var(--goed) 45%, transparent); } 100% { background: transparent; } }
@keyframes hoger { 0%, 30% { background: color-mix(in srgb, var(--accent) 35%, transparent); } 100% { background: transparent; } }
.ranglijst-lijst li.ik.nieuw, .ranglijst-lijst li.ik.hoger { animation-name: none; }
.rl-medaille { margin-right: 6px; font-family: var(--font); }

/* --- Bordmodus (beamer) ---------------------------------------------------------------- */
.bord-titel, .bord-uitleg { display: none; }
body.bord .geen-bord { display: none !important; }
body.bord .bord-titel { display: inline; color: var(--tekst-zacht); font-size: 0.55em; font-weight: 600; }
body.bord .bord-uitleg { display: block; text-align: center; margin-top: 16px; font-size: 1.1rem; }
body.bord main { max-width: 1100px; padding-top: 24px; }
body.bord h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
body.bord .ranglijst-lijst { font-size: clamp(1.4rem, 3vw, 2.3rem); padding-left: 2.4em; }
body.bord .ranglijst-lijst li { padding: 10px 14px; }
body.bord .kaart { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .decor-draai, .decor-golf-rij, .decor-worp, .weetje.in, .live-stip::before,
  .ranglijst-lijst li.nieuw, .ranglijst-lijst li.hoger { animation: none; }
  .tool:hover .tool-icoon { transform: none; }
}
