*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #000;
    font-family: "Barlow Medium",Arial;
    font-size: 1rem;
    line-height: 1.35rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,.004);
}

header {
    position: sticky;
    top: 0;
    height: 40px;
    background-color: #ededed;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Zorgt voor ruimte tussen het logo en andere content */
    border-bottom: 1px solid #ddd;
    padding: 0 10px; /* Padding links en rechts, maar niet boven/onder */
}

main {
    width:100%;
    flex: 1;
    overflow-y: auto;
    background-color: #fff;
}

footer {
    height: 375px;
    width: 100%;
    margin:0;
    padding:0;
    background-color: #ededed;
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.header-logo{
    margin: 0;
    padding:0;
}

.header-logo a{
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none;
    margin: 0;
}

.header-logo img{
    height: 30px;
    width: auto;
    margin: 5px;
}

.footer-menu {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 60px 0;
}

.footer-menu li {
    width: auto;
    height: 22px;
    margin: 0 0 0 10px;
    padding: 0 0 0 10px;
    display: inline-block;
    /*float: left;*/
}
footer .footer-partners {
    text-align: center;
}
footer .footer-partners img {
    height: 60px;
    margin: 15px;
}

/* de wrapper */
.content{
    width:100%; 
    max-width:1280px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
}

a {
    color: #000;
    text-decoration: none;
    transition: all 250ms ease-in-out;
    border-bottom: solid 1px transparent;
}

ul li {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-type: none;
    position: relative;
}
.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Container voor het hamburger-menu en de tekst */
.menu-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 0;
    align-items: center;
    gap: 2px;
}

/* Stijl voor de geselecteerde tekst */
.selected-text {
    padding: 10px;
    padding-left: 10px;
    font-size: 20px;
    border: 0px;
    min-width: 200px;
    text-align: left;
    font-size: 24px;
}

/* Stijl voor de dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Stijl voor de hamburger button */
.hamburger {
    background-color: #fff;
    color: #333;
    padding: 10px 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Stijl voor de hamburger lijnen */
.hamburger div {
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 2px 0;
    transition: 0.4s;
}

/* Stijl voor het dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2000;
    border-radius: 4px;
    left: 0;
}

/* Stijl voor de items in het dropdown menu */
.dropdown-content a {
    color: black;
    padding: 0;
    text-decoration: none;
    display: block;
}

/* Hover effect voor dropdown items */
.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.slide-container{
    width: 1280px;
    display: flex;
    position: relative;
}

#slide-pool{
    display:none;
}

#slide-left-slot{
    width: 640px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 96px); 
}

#slide-right-slot{
    width: 640px;
}

.slide-item {
    background-color: #fff;
    width: 640px;
    min-height: 600px;
}

.slide-vergelijk-wrapper{
    position: relative; /* Referentie voor overlappende divs */
    width: 100%;
    height: 100%;
}

.slide-item-sub{
    position: absolute;
    width:100%;
    height:100%;
    left:0;
    top:0;
}
.slide-wide {
    width: 1280px;
    height: 600px;
    transform: translateX(0);
}

.slide-toggle-button{
    cursor: pointer;
}


.home-legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
}
.home-legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.home-legend h4{
    margin:0 0 5px 0;
}

.button-container{
    position: sticky;
    top:41px;
    width: 100%;
    z-index: 2999;
    background-color: #fff;
}

.button-wrapper{
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

.button-list {
    display: flex;
    gap: 1px;
    align-items: center;
    list-style-type: none;
}

.button-list-right {
    right: 10px;
}

.button-list-left {
    left: 10px;
}

.button-list li {
    margin: 0;
    padding: 0;
}

.button-list a {
    display: inline-block;
    padding: 12px 20px 8px 20px;
    background-color: #f0f0f0; /* Lichtgrijs */
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button-list-left a.active {
    background-color: #9b59b6; /* Paars */
    color: white;
}

.button-list a:hover:not(.active) {
    background-color: #ddd;
}

.button-list-right a.active {
    background-color: #9b59b6; /* Paars */
    color: white;
}

#wijktekst{
    padding:0 20px 20px 20px;
}

.card-content{
    width:calc(100% - 17px);
    overflow-x: hidden;
    padding:10px 10px 10px 10px;
}

.card-image{
    min-width:600px;
    min-height:232px;
}

.wijktekst img{
    width:600px;
}

.grid-holder{
    width:90%;
    margin-bottom: 6px; 
    border-radius: 4px; 
    /* overflow: hidden;  */
    border:0.5px solid #cccccc;
}

.grid-card{
    width:100%;
    /*max-height: 500px;*/
    /* overflow-y: auto; */
}

.grid-kop{
    margin-top:20px;
    margin-bottom: 5px;
    color:#000;
}

.grid-row{
    width:100%;
}

.grid-cel{ 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    padding: 4px 6px; 
    cursor: pointer; 
    background: var(--color-background-primary); 
    user-select: none; 
}

.grid-tegel{
    width:22px;
    height:22px;
    border: 0.5px solid #CCCCCC;
    border-radius: 4px; 
    flex-shrink: 0;
}

.grid-label{
    width:75%;
    height:25px;
    display: inline;
    padding-left:10px;
    color:#555;
    font-weight:600;
}


.grid-arrow{
    display: flex; 
    justify-content: center;
    align-items: center;
    margin-left: auto;
    border-radius: 50%;
    width:24px;
    height:24px;
    color: #555;
    border:0.5px solid #cccccc;
}

.grid-arrow::before {
    content: "❯";
    transform: rotate(90deg) translateY(-1px); /* pas -1px/1px naar smaak aan */
    display: inline-block;
}

.grid-arrow.expanded::before {
  transform: rotate(-90deg) translateY(-1px); /* not hidden: omhoog */
}

.grid-arrow:hover{
    color: purple;
    border: 0.5px solid purple;
    background-color: #f1f1f1;
}

.grid-chart{
    transition: transform 0.3s;
    padding-left:10px;
}

.chart-kop{
    margin-bottom:0; 
    margin-top:5px; 
    width:95%; 
    color:#333333; 
    font-weight:normal;
}

.legenda-tegel{
    height:15px;
    display: inline-block;
    border-width:0;
    border-color: #888;
}

.legenda-text{
    display: inline-block;
}

.legenda-box{
    margin-top: 20px;
    font-size: 10;
}


.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #AAA;
    transition: .4s;
    border-radius: 16px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: #AAA;
}

input:checked + .switch-slider:before {
    transform: translateX(16px);
}

.y-axis {
    stroke: #AAAAAA;
    fill: #AAAAAA;
}

.x-axis text {
    transform: rotate(-45deg); /* Draai 45 graden naar links */
    text-anchor: end; /* Zorg dat de tekst rechts uitgelijnd is */
    font-size: 10px; /* Optioneel: pas de grootte aan */
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#overwijk{
    padding: 20px 20px o 20px;
    max-height: 580px;
}

.overwijk-btn { 
  display: inline-block; 
  cursor: pointer; 
}

.overwijk-btn.active { 
  color: #9b59b6; 
  cursor: default;  /* geen pointer als al actief */
  font-weight: bold;

}

.tegel-legend{
    width:10px;
    height:10px;
    display:inline-block;
}

#welkom{
    padding: 50px 20px 0 20px;
}

.kompas_cell_2{
    transition: filter 0.2s ease;
    cursor: pointer;
}
.kompas_cell_2:hover{
    filter: brightness(1.2);
}

.barInChart{
    transition: filter 0.2s ease;
    cursor: pointer;
}
.barInChart:hover{
    filter: brightness(1.2);
    stroke: grey;
}