:root{
  --primary:#0f766e;
  --primary-dark:#115e59;
  --bg:#f3f4f6;
  --card-bg:#ffffff;
  --text:#111827;
  --radius:14px;
  --shadow:0 6px 20px rgba(0,0,0,0.07);
  --border:#e3e3e3;
  --soft-text:#666;
  --soft-bg:#eef9f3;
}



html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
}

/* CONTAINERS */
.container {
    width: 95%;
    max-width: 980px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
}
.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
}

/* LAYOUT */

.page-main{
    padding:2.2rem 0 3rem;
}

/* kolom-layout: calculator boven, tekst eronder */
.hero-layout{
    display:flex;
    flex-direction:column;
    gap:2rem;
}
.text-column {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

/* zowel calculator als tekst gecentreerd met dezelfde breedte */
.calc-column,
.text-column{
    width:100%;
    max-width:640px;
    margin:0 auto;
}

/* CARD / CALC */

.card{
    background:var(--white);
    border-radius:1.1rem;
    padding:1.4rem 1.5rem 1.3rem;
    border:1px solid #e5e7eb;
    box-shadow:0 18px 40px rgba(15,23,42,.08);
}

.calc-card h1{
    font-size:1.4rem;
    margin-bottom:.4rem;
}

.calc-intro{
    font-size:.9rem;
    color:var(--muted);
    margin-bottom:.9rem;
}

/* algemeen knoppenblok (BTW layout) */
.rate-switch{
    display:flex;
    gap:.5rem;
    margin-bottom:.6rem;
    flex-wrap:wrap;
}

.rate-btn{
    flex:1 1 0;
    min-width:130px;
    border-radius:999px;
    border:1px solid #d1d5db;
    padding:.45rem .8rem;
    font-size:.85rem;
    background:#f9fafb;
    color:#111827;
    cursor:pointer;
}

.rate-btn.active{
    background:var(--primary);
    border-color:var(--primary-dark);
    color:#fff;
}

.rate-hint{
    font-size:.78rem;
    color:var(--muted);
    margin-bottom:.8rem;
}

.field-row{
    display:flex;
    flex-direction:column;
    gap:.25rem;
    margin-bottom:.7rem;
}

.field-row label{
    font-size:.8rem;
    color:var(--muted);
}

.field-row input{
    border-radius:.55rem;
    border:1px solid #d1d5db;
    padding:.5rem .7rem;
    font-size:.9rem;
    font-family:inherit;
}

.field-row input:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 1px rgba(15,118,110,.18);
}

.field-row input[readonly]{
    background:#f9fafb;
    cursor:not-allowed;
}

.calc-actions{
    text-align:center;
    margin:.9rem 0 .4rem;
}

.btn-clear{
    border:none;
    border-radius:999px;
    padding:.55rem 1.4rem;
    font-size:.9rem;
    background:var(--primary);
    color:#fff;
    cursor:pointer;
}

.btn-clear:hover{
    background:var(--primary-dark);
}

.calc-hint{
    font-size:.78rem;
    color:var(--muted);
    text-align:center;
}

/* TEKSTKOLOM */

.text-column h2{
    font-size:1.25rem;
    margin-bottom:.4rem;
}

.text-column h3{
    font-size:1.05rem;
    margin-top:1.1rem;
    margin-bottom:.2rem;
}

.text-column p{
    font-size:.9rem;
    color:#374151;
    margin-bottom:.55rem;
}

/* FOOTER */
.site-footer {
    padding: 15px 0;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--soft-text);
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

/* RESPONSIVE – MOBILE */

@media(max-width:768px){
    .page-main{
        padding-top:1.6rem;
    }
    .card{
        padding:1.2rem 1.1rem 1.1rem;
    }
}

/* DESKTOP UPGRADE – BREEDER & GROTER */

@media(min-width:1024px){

    .hero-layout{
        gap:2.5rem; /* meer ruimte tussen calculator en tekst */
    }

    .calc-column,
    .text-column{
        max-width:720px; /* breder blok op desktop */
    }

    .calc-card{
        padding:2.2rem 2.6rem;
    }

    .calc-card h1{
        font-size:2rem;
        font-weight:700;
        margin-bottom:.9rem;
    }

    .calc-intro{
        font-size:1rem;
    }

    .rate-btn{
        padding:.9rem 1.4rem;
        font-size:1.05rem;
        font-weight:600;
    }

    .field-row label{
        font-size:1.05rem;
        font-weight:600;
    }

    .field-row input{
        padding:1rem 1.5rem;   /* extra ruimte links/rechts */
        font-size:1.3rem;
        font-weight:600;
    }

    .field-row input::placeholder{
        font-weight:600;
        color:#9ca3af;
    }

    .btn-clear{
        font-size:1.05rem;
        padding:.9rem 2.1rem;
        font-weight:700;
    }
    
    .calc-hint{
        font-size:1rem;
        font-weight:600;
    }

    .text-column h2{
        font-size:1.5rem;
    }

    .text-column p{
        font-size:.95rem;
    }
}

/* ========= BMI-SPECIFIEKE STYLES ========= */

.gender-switch{
    display:flex;
    gap:.5rem;
    margin-bottom:.6rem;
    flex-wrap:wrap;
}

.gender-btn{
    flex:1 1 0;
    min-width:130px;
    border-radius:999px;
    border:1px solid #d1d5db;
    padding:.75rem 1.4rem;
    font-size:.95rem;
    font-weight:600;
    background:#f9fafb;
    color:#111827;
    cursor:pointer;
}


.gender-btn.active{
    background:var(--primary);
    border-color:var(--primary-dark);
    color:#fff;
}

.inline-row{
    flex-direction:row;
    gap:.75rem;
}

.field-group{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:.25rem;
}

.field-group select{
    border-radius:.55rem;
    border:1px solid #d1d5db;
    padding:.55rem .7rem;
    font-size:.9rem;
    font-family:inherit;
    background:#fff;
}

.field-group select:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 1px rgba(15,118,110,.18);
}

.result-box{
    margin-top:.9rem;
    margin-bottom:.3rem;
    padding:.75rem 1rem;
    border-radius:.8rem;
    background:#ecfdf5;
    border:1px solid #bbf7d0;
}

.result-line{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:.95rem;
    margin-bottom:.2rem;
}

.result-line:last-child{
    margin-bottom:0;
}

.result-label{
    font-weight:600;
    color:#047857;
}

#bmiValue{
    font-weight:700;
}

#bmiCategory{
    font-weight:600;
}

/* lijstje onder uitleg */
.bmi-list{
    margin:.4rem 0 .6rem 1.1rem;
    font-size:.9rem;
    color:#374151;
}

.bmi-list li{
    margin-bottom:.15rem;
}

/* mobile fix inline-row */
@media(max-width:640px){
    .inline-row{
        flex-direction:column;
    }
}
.calc-card h1,
.calc-card .calc-intro{
    text-align: center;
}
/* HEADER SHARE BUTTON */
.header-share {
    position: relative;
    margin-left: auto;
}

.header-share-btn {
    background: #0f766e;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: background 0.15s, transform 0.1s;
}

.header-share-btn:hover {
    background: #115e59;
    transform: translateY(-1px);
}

.header-share-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    padding: 0.35rem 0;
    min-width: 180px;
    z-index: 9999;
}

.header-share-menu.open {
    display: block;
}

.header-share-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    color: #111827;
    transition: background 0.15s;
}

.header-share-item:hover {
    background: #f3f4f6;
}

/* Copy confirmation */
.header-share-toast {
    position: absolute;
    right: 0;
    top: -28px;
    background: #111827;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s, transform 0.15s;
}

.header-share-toast.show {
    opacity: 1;
    transform: translateY(-10px);
}
/* FOOTER */
.site-footer{
  padding:15px 0;
  border-top:1px solid var(--border);
  background:var(--card-bg);
  margin-top:40px;
}

.footer-inner{
  display:flex;
  flex-direction:column;
  gap:6px;
  text-align:center;
  font-size:.9rem;
  color:var(--soft-text);
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
  font-size:.85rem;
}

.footer-links a{
  color:var(--primary);
  text-decoration:none;
  font-weight:700;
}

.footer-links a:hover{
  text-decoration:underline;
}

.footer-sep{
  color:#9ca3af;
}

.footer-copy{
  font-size:.85rem;
  color:var(--soft-text);
}
/* FAQ */
.faq{
  margin-top:1.6rem;
  margin-bottom:2rem;
}

.faq .container{
  max-width:980px;
}

.faq h2{
  max-width:720px;
  margin:0 auto 1rem auto;
  padding:0 6px;
}

.faq-item{
  max-width:720px;
  margin:0 auto .75rem auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:.9rem 1rem;
  box-shadow:0 10px 25px rgba(15,23,42,0.06);
}

.faq-item > summary{
  cursor:pointer;
  font-weight:800;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.faq-item > summary::-webkit-details-marker{display:none;}
.faq-item > summary::marker{content:"";}

.faq-item > summary::after{
  content:"›";
  font-size:22px;
  line-height:1;
  opacity:.75;
  transform:rotate(0deg);
  transition:transform .18s ease, opacity .18s ease;
}

.faq-item[open] > summary::after{
  transform:rotate(90deg);
  opacity:1;
}

.faq-item > p{
  margin:.75rem 0 0 0;
  line-height:1.6;
  color:#374151;
  font-weight:520;
}
/* COOKIE BANNER + MODAL (consent.js UI) */
.cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:99999;
  padding:14px;
  background:rgba(17,24,39,.92);
  color:#fff;
  backdrop-filter: blur(6px);
}

.cookie-banner-inner{
  max-width:980px;
  margin:0 auto;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.cookie-banner-text{
  font-size:.9rem;
  line-height:1.35;
}

.cookie-banner-text a{
  color:#a7f3d0;
  text-decoration:underline;
}

.cookie-banner-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.cookie-btn{
  border:0;
  border-radius:999px;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  font-size:.88rem;
}

.cookie-btn-primary{
  background:var(--primary);
  color:#fff;
}
.cookie-btn-primary:hover{background:var(--primary-dark);}

.cookie-btn-secondary{
  background:#374151;
  color:#fff;
}
.cookie-btn-secondary:hover{background:#4b5563;}

.cookie-btn-ghost{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
}
.cookie-btn-ghost:hover{background:rgba(255,255,255,.08);}

/* MODAL */
.cookie-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.cookie-modal-box{
  width:min(560px, 100%);
  background:#fff;
  color:#111827;
  border-radius:16px;
  padding:18px 18px 14px;
  box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.cookie-modal-title{
  font-weight:900;
  font-size:1.1rem;
  margin-bottom:8px;
}

.cookie-modal-desc{
  font-size:.92rem;
  line-height:1.4;
  color:#374151;
}

.cookie-modal-desc a{
  color:var(--primary);
  font-weight:900;
}

.cookie-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
  flex-wrap:wrap;
}
@media(min-width:1024px){
  .text-column{
    background:#fff;
    padding:24px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
  }
}
