/* ══════════════════════════════════════════════════════════
   STAP Energie — sections.css
   Layout-wrappers voor alle sectie-componenten:
   section-kaarten, section-stappen, section-two-col,
   section-tabs, section-form, section-highlight
   Geen component-styling hier — zie components.css
══════════════════════════════════════════════════════════ */

/* ── Sectie basis ── */
.sectie { padding: 80px 40px; }
.sectie--wit { background: #fff; }
.sectie--grijs { background: var(--lichtgrijs); }
.sectie--groen { background: var(--groen); color: #fff; }
.sectie__inner { max-width: 1200px; margin: 0 auto; }

.sectie__label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--groen);
  margin-bottom: 8px;
}
.sectie--groen .sectie__label { color: rgba(255,255,255,.7); }

.sectie__titel {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  color: var(--tekst);
  line-height: 1.2;
  margin-bottom: 12px;
}
.sectie--groen .sectie__titel { color: #fff; }

.sectie__intro {
  font-size: var(--tekst-body);
  color: var(--subtekst);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.sectie--groen .sectie__intro { color: rgba(255,255,255,.8); }

/* ── Sectie kaarten ── */
.sectie-kaarten__grid { display: grid; gap: 24px; }
.sectie-kaarten__grid--2 { grid-template-columns: repeat(2, 1fr); }
.sectie-kaarten__grid--3 { grid-template-columns: repeat(3, 1fr); }
.sectie-kaarten__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sectie-kaarten__noot { margin-top: 20px; text-align: center; font-size: .83rem; color: var(--subtekst); }
.sectie-kaarten__noot a { color: var(--groen); font-weight: 600; }

/* ── Sectie stappen ── */
.sectie-stappen__grid {
  display: grid;
  gap: 20px;
  position: relative;
}
.sectie-stappen__grid--2 { grid-template-columns: repeat(2, 1fr); }
.sectie-stappen__grid--3 { grid-template-columns: repeat(3, 1fr); }
.sectie-stappen__grid--4 { grid-template-columns: repeat(4, 1fr); }
.sectie-stappen__grid--4::before,
.sectie-stappen__grid--3::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 2px;
  background: linear-gradient(90deg, var(--groen-acc), var(--groen-mid));
}

.stap {
  background: #fff;
  border: 1px solid var(--rand);
  border-radius: var(--rl);
  padding: 26px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: box-shadow .2s;
}
.stap:hover { box-shadow: var(--shadow-lg); }
.stap__nummer {
  width: 40px;
  height: 40px;
  background: var(--groen);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--groen-acc);
}
.stap__titel { font-size: var(--tekst-kop); font-weight: 700; color: var(--tekst); margin-bottom: 6px; }
.stap__tekst { font-size: var(--tekst-body); color: var(--subtekst); line-height: 1.65; }

/* ── Sectie two-col ── */
.sectie-two-col__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sectie-two-col__grid--omgekeerd > :first-child { order: 2; }
.sectie-two-col__grid--omgekeerd > :last-child  { order: 1; }
.sectie-two-col__content { display: flex; flex-direction: column; gap: 16px; }
.sectie-two-col__visueel img { width: 100%; border-radius: var(--rl); }

/* ── Sectie tabs ── */
.sectie-tabs__nav {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--rand);
  padding-bottom: 0;
}
.sectie-tabs__knop {
  padding: 10px 20px;
  font-size: var(--tekst-sub);
  font-weight: 600;
  color: var(--subtekst);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.sectie-tabs__knop:hover { color: var(--groen); }
.sectie-tabs__knop--actief { color: var(--groen); border-bottom-color: var(--groen); }
.sectie-tabs__panel { display: none; }
.sectie-tabs__panel--actief { display: block; }
.sectie-tabs__content { display: flex; flex-direction: column; gap: 14px; }

/* ── Sectie highlight (urgentie/mededeling balk) ── */
.sectie-highlight {
  background: #fff8e1;
  border-top: 3px solid #f59e0b;
  padding: 14px 40px;
}
.sectie-highlight--groen { background: var(--groen-card); border-top-color: var(--groen); }
.sectie-highlight--rood { background: #fee2e2; border-top-color: #ef4444; }
.sectie-highlight__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--tekst-sub);
  flex-wrap: wrap;
}
.sectie-highlight__badge {
  background: #f59e0b;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}
.sectie-highlight--groen .sectie-highlight__badge { background: var(--groen); }
.sectie-highlight--rood .sectie-highlight__badge { background: #ef4444; }
.sectie-highlight__tekst { color: var(--tekst); line-height: 1.5; }

/* ── Sectie form ── */
.sectie-form__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
.sectie-form__intro { display: flex; flex-direction: column; gap: 20px; }
.sectie-form__stap { display: flex; align-items: flex-start; gap: 14px; }
.sectie-form__stap-nr {
  width: 32px;
  height: 32px;
  background: var(--groen);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.sectie-form__stap-titel { font-size: var(--tekst-ui); font-weight: 700; margin-bottom: 3px; }
.sectie-form__stap-tekst { font-size: var(--tekst-sub); color: var(--subtekst); line-height: 1.55; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sectie { padding: 56px 24px; }
  .sectie-kaarten__grid--3,
  .sectie-kaarten__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sectie-stappen__grid--3,
  .sectie-stappen__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sectie-stappen__grid--4::before,
  .sectie-stappen__grid--3::before { display: none; }
  .sectie-two-col__grid { grid-template-columns: 1fr; gap: 32px; }
  .sectie-two-col__grid--omgekeerd > :first-child { order: unset; }
  .sectie-two-col__grid--omgekeerd > :last-child  { order: unset; }
  .sectie-form__grid { grid-template-columns: 1fr; gap: 32px; }
  .sectie-highlight { padding: 14px 24px; }
}
@media (max-width: 480px) {
  .sectie-kaarten__grid--2,
  .sectie-kaarten__grid--3,
  .sectie-kaarten__grid--4 { grid-template-columns: 1fr; }
  .sectie-stappen__grid--2,
  .sectie-stappen__grid--3,
  .sectie-stappen__grid--4 { grid-template-columns: 1fr; }
}

/* ── Doc-tip (voorbereiding sectie) ── */
.doc-tip {
  display: inline-block;
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--groen);
  background: var(--groen-card);
  padding: 4px 10px;
  border-radius: var(--r);
  line-height: 1.4;
}

/* ── Sectie contrast (section-contrast.php) ──────────────────────────────── */
.contrast__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.contrast__blok {
    padding: 28px 28px 24px;
    border-radius: var(--rl);
}

.contrast__blok--neutraal {
    background: #fff;
    border: 1px solid var(--rand);
}

.contrast__blok--positief {
    background: var(--groen-card);
    border: 1px solid var(--groen-acc);
}

.contrast__tag {
    font-size: var(--tekst-ui);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.contrast__tag--neutraal { color: var(--subtekst); }
.contrast__tag--positief { color: var(--groen); }

.contrast__lijst {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contrast__lijst li {
    font-size: var(--tekst-body);
    color: var(--tekst);
    line-height: 1.6;
    padding-left: 22px;
    position: relative;
}

.contrast__lijst--neutraal li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--subtekst);
}

.contrast__lijst--positief li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--groen);
    font-weight: 700;
}

.contrast__noot {
    font-size: var(--tekst-sub);
    color: var(--subtekst);
    font-style: italic;
    margin: 0;
    line-height: 1.55;
}

.contrast__noot--groen {
    color: var(--groen);
    font-style: normal;
    font-weight: 600;
}

.contrast__extra {
    margin-top: 18px;
}

/* ── Stap extra-veld (section-stappen.php) ───────────────────────────────── */
.stap__extra {
    margin-top: 10px;
}

.stap__link {
    display: inline-block;
    font-size: var(--tekst-klein);
    font-weight: 600;
    color: var(--groen);
    text-decoration: none;
    border-bottom: 1px solid var(--groen-acc);
    transition: color .15s, border-color .15s;
}

.stap__link:hover {
    color: var(--donkergroen, #1a5c32);
    border-color: var(--groen);
}

/* ── Responsive contrast ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .contrast__grid {
        grid-template-columns: 1fr;
    }
}
