/* ============================================================
   MijnOpzegtermijn.be – Hoofdstijlblad
   Mobile-first, geen frameworks
   ============================================================ */

/* === Reset & Basis === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --kleur-primair:   #1E3A5F;
  --kleur-accent:    #27AE60;
  --kleur-bg:        #F4F8FC;
  --kleur-tekst:     #1A1A2E;
  --kleur-wit:       #FFFFFF;
  --kleur-lichtgrijs:#E8EEF4;
  --kleur-oranje:    #E67E22;
  --kleur-geel-licht:#FFFBEA;
  --kleur-groen-licht:#EAF9F0;
  --radius:          8px;
  --schaduw:         0 2px 12px rgba(30,58,95,0.10);
  --schaduw-hover:   0 4px 20px rgba(30,58,95,0.18);
  --max-breedte:     1100px;
  --font:            'Segoe UI', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--kleur-bg);
  color: var(--kleur-tekst);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--kleur-primair); text-decoration: underline; }
a:hover { color: var(--kleur-accent); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--kleur-primair);
}
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.65rem); margin-bottom: 0.75rem; margin-top: 2rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 0.5rem; margin-top: 1.25rem; }

p { margin-bottom: 1rem; }
ul, ol { margin: 0.5rem 0 1rem 1.5rem; }
li { margin-bottom: 0.3rem; }

/* === Navigatie === */
.navbar {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.navbar-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--kleur-wit);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.navbar-logo span { color: var(--kleur-accent); }

.nav-links {
  display: none;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--kleur-wit);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  display: block;
}
.nav-links a:hover, .nav-links a.actief {
  background: rgba(255,255,255,0.15);
  color: var(--kleur-accent);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--kleur-wit);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu open */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--kleur-primair);
  padding: 0.5rem 1rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
}

/* === Hero / Banner === */
.hero {
  background: linear-gradient(135deg, var(--kleur-primair) 60%, #2a5298 100%);
  color: var(--kleur-wit);
  padding: 3rem 1rem 2rem;
  text-align: center;
}
.hero h1 {
  color: var(--kleur-wit);
  max-width: 800px;
  margin: 0 auto 1rem;
}
.hero p.lead {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 1.5rem;
  opacity: 0.92;
  color: var(--kleur-wit);
}

/* === Calculator === */
.calculator-widget {
  background: var(--kleur-wit);
  border-radius: 12px;
  box-shadow: var(--schaduw-hover);
  padding: 1.75rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.calculator-widget h2 {
  color: var(--kleur-primair);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  text-align: center;
}
.calc-groep {
  margin-bottom: 1.2rem;
}
.calc-groep label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--kleur-primair);
  font-size: 0.92rem;
}
.calc-groep input[type="range"] {
  width: 100%;
  accent-color: var(--kleur-accent);
  cursor: pointer;
}
.slider-waarde {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
}
.slider-waarde strong { color: var(--kleur-primair); font-size: 1rem; }

.jaar-maand-inputs {
  display: flex;
  gap: 0.75rem;
}
.jaar-maand-inputs .input-groep {
  flex: 1;
}
.jaar-maand-inputs label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kleur-primair);
  display: block;
  margin-bottom: 0.25rem;
}
.jaar-maand-inputs input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 2px solid var(--kleur-lichtgrijs);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--kleur-tekst);
  transition: border-color 0.2s;
}
.jaar-maand-inputs input:focus {
  outline: none;
  border-color: var(--kleur-accent);
}

.type-keuze {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.type-keuze label {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--kleur-bg);
  border: 2px solid var(--kleur-lichtgrijs);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.type-keuze input[type="radio"] {
  accent-color: var(--kleur-accent);
  width: 16px;
  height: 16px;
}
.type-keuze label:has(input:checked) {
  border-color: var(--kleur-accent);
  background: var(--kleur-groen-licht);
}

.btn-bereken {
  display: block;
  width: 100%;
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font);
  margin-top: 0.5rem;
}
.btn-bereken:hover {
  background: #219150;
  transform: translateY(-1px);
}
.btn-bereken:active { transform: translateY(0); }

.calc-resultaat {
  display: none;
  margin-top: 1.25rem;
  background: var(--kleur-groen-licht);
  border: 2px solid var(--kleur-accent);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.calc-resultaat.zichtbaar { display: block; }
.resultaat-weken {
  font-size: 2rem;
  font-weight: 800;
  color: var(--kleur-accent);
  display: block;
}
.resultaat-maanden {
  font-size: 1rem;
  color: var(--kleur-primair);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}
.resultaat-toelichting {
  font-size: 0.88rem;
  color: #444;
  margin-top: 0.5rem;
}

/* === Main container === */
.container {
  max-width: var(--max-breedte);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--kleur-primair); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; color: #aaa; }

/* === Secties === */
.sectie {
  margin-bottom: 2.5rem;
}

/* === Tabellen === */
.tabel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin: 1rem 0 1.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
  background: var(--kleur-wit);
}
thead th {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}
tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--kleur-lichtgrijs);
  font-size: 0.92rem;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #F8FAFD; }
tbody tr:hover { background: var(--kleur-groen-licht); }
.td-weken {
  font-weight: 700;
  color: var(--kleur-accent);
}

/* === Tip / Weetje blokken === */
.tip-blok {
  background: var(--kleur-geel-licht);
  border-left: 4px solid #F1C40F;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.tip-blok strong { display: block; margin-bottom: 0.3rem; color: #7D6608; }

.info-blok {
  background: var(--kleur-groen-licht);
  border-left: 4px solid var(--kleur-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.info-blok strong { display: block; margin-bottom: 0.3rem; color: #155724; }

/* === Disclaimerbox === */
.disclaimer-box {
  border: 2px solid var(--kleur-oranje);
  background: #FFF8F0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #7D4400;
}
.disclaimer-box::before {
  content: "⚠️ ";
  font-size: 1.1rem;
}

/* === FAQ Accordion === */
.faq-sectie {
  margin: 2rem 0;
}
.faq-sectie h2 { margin-bottom: 1rem; }

details.faq-item {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-lichtgrijs);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details.faq-item[open] {
  box-shadow: var(--schaduw);
}
details.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--kleur-primair);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--kleur-accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after {
  content: "−";
}
.faq-antwoord {
  padding: 0 1.25rem 1rem;
  font-size: 0.93rem;
  border-top: 1px solid var(--kleur-lichtgrijs);
  padding-top: 0.75rem;
}

/* === CTA knoppen === */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primair {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}
.btn-primair:hover {
  background: #162d4a;
  color: var(--kleur-wit);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--kleur-accent);
  color: var(--kleur-wit);
}
.btn-accent:hover {
  background: #219150;
  color: var(--kleur-wit);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--kleur-primair);
  border: 2px solid var(--kleur-primair);
}
.btn-outline:hover {
  background: var(--kleur-primair);
  color: var(--kleur-wit);
}

.cta-groep {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* === Linktegels andere websites === */
.link-tegels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.link-tegel {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-lichtgrijs);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--kleur-tekst);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
  display: block;
}
.link-tegel:hover {
  box-shadow: var(--schaduw-hover);
  border-color: var(--kleur-accent);
  transform: translateY(-2px);
  color: var(--kleur-tekst);
}
.link-tegel .tegel-naam {
  font-weight: 700;
  color: var(--kleur-primair);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  display: block;
}
.link-tegel .tegel-omschrijving {
  font-size: 0.83rem;
  color: #555;
}

/* === Kaarten grid === */
.kaarten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.kaart {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schaduw);
  border-top: 4px solid var(--kleur-accent);
}
.kaart h3 { margin-top: 0; }

/* === Introductietekst === */
.intro-tekst {
  font-size: 1.02rem;
  max-width: 820px;
  line-height: 1.8;
}

/* === Sector blokken === */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.sector-kaart {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--schaduw);
  border-left: 5px solid var(--kleur-primair);
}
.sector-kaart h3 {
  margin-top: 0;
  font-size: 1rem;
}
.sector-kaart .pc-badge {
  display: inline-block;
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

/* === Berekening voorbeeld === */
.voorbeeld-blok {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  padding: 1.35rem 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--kleur-primair);
}
.voorbeeld-blok h4 { margin-top: 0; color: var(--kleur-primair); }

/* === Footer === */
footer {
  background: var(--kleur-primair);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: var(--max-breedte);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-kolom h4 {
  color: var(--kleur-wit);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.footer-kolom ul { list-style: none; margin: 0; padding: 0; }
.footer-kolom li { margin-bottom: 0.4rem; }
.footer-kolom a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-kolom a:hover { color: var(--kleur-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--kleur-accent); }

/* === 404 === */
.pagina-404 {
  text-align: center;
  padding: 4rem 1rem;
}
.pagina-404 .nummer {
  font-size: 6rem;
  font-weight: 900;
  color: var(--kleur-accent);
  line-height: 1;
  display: block;
}

/* === Wettelijk === */
.wettelijk-sectie {
  max-width: 780px;
}

/* === Responsive aanpassingen === */
@media (max-width: 480px) {
  .calc-resultaat .resultaat-weken { font-size: 1.6rem; }
  .link-tegels { grid-template-columns: 1fr; }
  .kaarten-grid { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: 4rem 1rem 3rem; }
  .hero p.lead { font-size: 1.2rem; }
}

/* === Highlight tekst === */
.highlight { color: var(--kleur-accent); font-weight: 700; }
.badge {
  display: inline-block;
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
  vertical-align: middle;
}

/* === Accessibiliteit === */
:focus-visible {
  outline: 3px solid var(--kleur-accent);
  outline-offset: 2px;
}

/* Print */
@media print {
  .navbar, footer, .hamburger { display: none; }
  .container { padding: 0; }
}
