/* ===========================================
   CSS RESET
=========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a
{
  color   : var(--kleur-titel);
  text-decoration: none;
}

a:hover
{
  color: var(--kleur-hover);
  transition: 0.5s;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

.button
{
  cursor: pointer;
  margin-top: 20px; 
  background-color: var(--kleur-menu);
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;

  border-radius:5px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.button:hover
{
    color: white;
    background-color: var(--kleur-hover);
    transition: 0.5s;
}

/* ===========================================
   CSS VARIABELEN - ANTI-FLITS VERSIE
=========================================== */

/* Basis variabelen - LIGHT als absolute fallback */
:root {
    /* Spacing - altijd hetzelfde */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-xxl: 40px;
    
    --font-family: Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-xxl: 32px;
    
    /* Z-index lagen - overlay boven alles behalve menu */
    --z-header: 1000;
    --z-mobile-footer: 999;
    --z-mobile-menu: 998;
    --z-mobile-menu-overlay: 1500; 
    --z-mobile-menu-content: 1600; 
    --z-modal: 2000;
    
    /* Theme kleuren - DEFAULT LIGHT */
    --kleur-titel: #0061B0;
    --kleur-subtitel: #444746;
    --kleur-item: #e9f0fa;
    --kleur-menu: #0061B0;
    --kleur-hover: #2bacf9;
    --kleur-wissen: #d63437;

    --kleur-reaksjes: #e9eaed;
    --kleur-pompebled: #dc231f;
    --kleur-back-art: #e8f4fd;
    --kleur-back: #e7f4fc;

    --primary-dark-blue: #003366;
    --text-color: #000000;
    --bg-color: #e8f4fd;
    --header-bg: #ffffff;
    --menu-bg: #ffffff;
    --menu-text: #000000;
    --border-color: #e0e0e0;
    --shadow-up: 0 -2px 4px rgba(0,0,0,0.1);
}


@media (prefers-color-scheme: dark) {
    :root {
        --kleur-titel: #ffffff;
        --kleur-subtitel: #cccccc;
        --kleur-item: #333333;
        --kleur-menu: #0061B0;
        --kleur-hover: #2bacf9;
        --kleur-wissen: #ff6165;

        --kleur-reaksjes: #202e39;;
        --kleur-pompebled: #dc231f;
        --kleur-back-art: #131415;
        --kleur-back: #2e2f2f;


        --primary-dark-blue: #001a33;
        --text-color: #ffffff;
        --bg-color: #1a1a1a;
        --header-bg: #1a1d1e;
        --menu-bg: #2a2a2a;
        --menu-text: #ffffff;
        --border-color: #404040;
        --shadow-up: 0 -2px 4px rgba(255,255,255,0.1);
    }
}



/* ===========================================
   ALGEMENE STIJLEN
=========================================== */

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--kleur-back-art);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

.main-content, .main-content-app {
    flex: 1;
    padding: 0px;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--header-bg);
    transition: background-color 0.3s ease;
}

.main-content
{
    margin-top: 60px;
}

.main-content-app
{
    margin-top: 0px;
    padding-right: 0px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1
{
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--kleur-titel);
}

h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--kleur-titel);
    transition: color 0.3s ease;
}

h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

p {
    margin-bottom: var(--spacing-md);
}


/* ===========================================
   HEADER STIJLEN
=========================================== */

.header {
    max-width: 1000px;
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: none;
    z-index: var(--z-header);
    transition: background-color 0.3s ease;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background-color: var(--kleur-menu);
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.3s ease;
    overflow: visible;
}

.header-icon:hover {
    transform: scale(1.05);
    background-color: var(--kleur-hover);
}

.header-icon img {
    width: 28px;
    height: 28px;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 80px;
    width: auto;
    padding-top: 12px;
    margin-right: 40px;
}

/* Desktop navigatie */
.desktop-nav {
    display: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.desktop-nav a {
    color: var(--kleur-titel);
    font-size: 22px;
    font-weight: bold;
    transition: color 0.2s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--kleur-hover);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--kleur-hover);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.nav-left, .nav-right {
    display: flex;
    gap: var(--spacing-lg);
}


.banner
{
  text-align: center;
  padding-top: 30px;
  padding-bottom: 0px;
  margin-bottom: 5px;
}

/* ===========================================
   NIJS STYLING
=========================================== */

.mobiel_weer_inbraak
{
    display: flex;
    justify-content: space-between;
        width: calc(100% - 0px);
    align-items: center;
    font-size: 25px;
    font-weight: bold;
    padding: 5px 18px 5px 10px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid lightgrey;
    line-height: 1;
    height: 60px;
    margin-bottom: 15px;
    margin-top: 25px;
}

#news-container
{
    padding-top: 0px;
    margin-top: 0px;
}

.nijs-item {
    display: flex;
    flex-direction: column;
    padding: 25px 0px;
    border-bottom: none;
    position: relative;
    transition: background-color 0.3s ease;
    gap: 15px;
}

.nijs-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--kleur-back);
}

.nijs-item:first-child {
    padding-top: 0px;
}

.nijs-item:last-child {
    border-bottom: none;
}


.nijs-kat {
    font-size: 0.8em;
    color: var(--kleur-subtitel);
    line-height: 1;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.nijs-kat .kleur {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
    border-radius: 2px;
}

.nijs-kat a {
    text-decoration: none;
    color: inherit;
}

.nijs-plaatsje {
   width: calc(100vw - 15px);
   aspect-ratio: 3/2;
   height: auto;
   object-fit: cover;
   margin-bottom: 15px;
   border-radius: 8px;

}

.nijs-kontent {
    flex: 1;
    min-width: 0;
}

.nijs-titel {
    font-size: 26px;
    font-weight: 600;
    color: var(--kleur-titel);
    margin-bottom: 8px;
    line-height: 1.1;
}

.nijs-titel.grutter
{
    font-size: 26px;
    line-height: 1.2;

}


.nijs-titel a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nijs-titel a:hover {
    color: #3498db;
}

.nijs-meta {
    display: flex;
    gap: 5px;
    color: #7f8c8d;
    font-size: 15px;
    flex-wrap: wrap;
}

.nijs-haad-kontent-compact {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    flex-direction: row !important;
}

.nijs-plaatsje-compact {
    width: 120px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    aspect-ratio: auto !important;
}

@media (min-width: 769px)
{
   .nijs-item {
       flex-direction: column;
       gap: 15px;
   }
   
   .nijs-kat {
       margin-bottom: 5px;
   }
            
   .nijs-titel {
       font-size: 22px;
       margin-bottom: 12px;
   }
   
   .nijs-meta {
       font-size: 16px;
       gap: 20px;
   }
}

@media (max-width: 768px)
{
    .page-container
    {
        margin-right: 10px;
    }

   .nijs-item {
       padding-bottom: 25px;
       gap: 12px;
   }
   
   .nijs-haad-kontent {
       flex-direction: column;
       gap: 25px;
   }
   
   .nijs-titel {
       font-size: 18px;
       margin-bottom: 10px;
   }

    .nijs-haad-kontent-compact .nijs-titel {
        font-size: 18px;
        line-height: 1.1;
    }
    
    .nijs-haad-kontent-compact .nijs-meta {
        font-size: 15px;
    }
}


/* ===========================================
   POLL
=========================================== */

.artikel-poll h2
{
    font-size: 22px;
}

.poll-container {
    width: 90%;
    padding: 10px;
}

.poll-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    
}

.poll-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--kleur-reaksjes);
    border-radius: 7px;
}



.poll-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative; 
    z-index: 1;
}

.poll_fraach
{
  width: 90%;
  border-radius: 7px;
  padding: 10px;
  background-color: var(--kleur-reaksjes);
  margin-bottom: 15px;
  cursor: pointer;
}

.poll_fraach:hover
{
    background-color: var(--kleur-hover);
        cursor: pointer;
}

.poll-answer.winner .poll-bg {
    background-color: var(--kleur-hover);
}

.poll-answer {
    position: relative;
    padding: 5px 10px;
    border-radius: 7px;
    max-width: 80%;
    min-width: 250px;

    z-index: 1;
}

.poll-chosen {
    font-weight: bold;
    order: 2;
    margin-left: 10px;
    z-index: 1; 
}

.poll-percentage {
    margin-left: 10px;
    flex-shrink: 0;
}




/* ===========================================
   TOP 10 SIDE SCROLL IN APP
=========================================== */


.scroll-container
{
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-left: 10px;
  padding-right: 20px;
}

.scroll-container::-webkit-scrollbar
{
  display: none;
}

.scroll-item
{
    flex: 0 0 auto;
    width: 150px;
    height: 240px;
    background-color: var(--kleur-menu);
    margin-right: 10px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: #000000;
    white-space: normal;
    padding: 0px;
}

.scroll-item a
{
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100px;
}
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-container span {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--kleur-menu);
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 25px;
}

.title {
      width: 140px;
    color: white;
    font-size: 16px;
    line-height: 19px;
    padding: 10px 1px 4px 8px;
    overflow-wrap: break-word;
}
.bottom-info {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.bottom-info span {
    padding: 5px;
    font-size: 13px;
    color: white;
    line-height: 1;
}

/* zelfde maar dan andere kleur voor vacatures */

.vacaturekleur
{
    background-color: #b10160;
}

.vacaturelogo img {
    transform: translateY(35px);
}

.scroll-item.vacaturekleur .title
{
    margin-top: 34px;
}

.scroll-item .pink-small
{
    background-color: #b10160;
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 10;
    font-size: 16px;
}


/* ===========================================
   FORMULIEREN / BUTTONS
=========================================== */


.form-section
{
    margin-top: 0px;
    background: var(--menu-bg);
    border-radius: 12px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #000000;
    transition: transform 2s ease, box-shadow 0.2s ease;
}

.form-body
{
    margin-top: 10px;
    padding: 10px 5px 50px 5px;
    font-size: 18px;
}

.input-wrapper {position:relative; margin:1.25rem 0}
.input-grut{
  width:100%;
  padding:1rem 1rem;
  border: 2px solid #ddd;
  border-radius:12px;
  background:transparent;
  color:inherit;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease;
  font:inherit;
}
.input-grut:focus{
  border-color:var(--kleur-menu);
}

.input-grut:hover{
    border-color:var(--kleur-menu);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.label{
  position:absolute;
  left:1rem;
  top:1.8rem;
  transform:translateY(-50%);
  font-size:1.1rem;
  color:var(--kleur-tekst);
  pointer-events:none;
  transition:top .22s ease,left .22s ease,transform .22s ease,
             font-size .22s ease,color .22s ease,padding .22s ease,
             background-color .22s ease;
  padding:0 .25rem;
}
.input-grut:focus + .label,
.input-grut:not(:placeholder-shown) + .label{
  top:0;
  left:20px;
  font-size:16px;
  color:var(--kleur-menu);
  background-color: var(--menu-bg);
}

select.input-grut {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 1rem 2.5rem 1rem 1rem;
  color: inherit;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  cursor: pointer;
}

/* Hover/focus */
select.input-grut:focus {
  border-color: var(--kleur-menu);
}

select.input-grut:hover {
  border-color: var(--kleur-menu);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--kleur-menu);
  font-size: 0.9rem;
}


/* effect bij login box */

input.input-grut:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px var(--header-bg) inset;
    -webkit-text-fill-color: var(--text-color); 
}

input:-webkit-autofill + .label {
    top: 0;
    left: 20px;
    font-size: 16px;
    color: var(--kleur-menu);
    background-color: var(--header-bg);
}

/* ===========================================
   FORMULIEREN UPLOAD
=========================================== */


    .upload-wrapper {
      position: relative;
      display: block;
      width: 300px;
      aspect-ratio: 3 / 2;
      border: 2px dashed #ccc;
      border-radius: 8px;
      overflow: hidden;
      background: #f0f0f0;
      margin: 40px auto; 

    }

    .preview {
        width: 100%;
        height: 100%;
      }

      .preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
      }

      .file-label {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5em 1em;
        border-radius: 6px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        cursor: pointer;
        font-size: 0.9em;
        white-space: nowrap;
      }

      input[type=file] {
        display: none;
      }


/* ===========================================
   FORMULIEREN FOUT STYLING
=========================================== */


.input-grut.touched:invalid {
  border-color: var(--kleur-pompebled);
}
.input-grut.touched:invalid + .label {
  color: var(--kleur-pompebled);
}
.input-grut.touched:invalid ~ .error-msg {
  display: block;
}

.error-msg{
  font-size:.8rem;
  color:var(--kleur-pompebled);
  margin:.25rem 0 0 .5rem;
  display:none;
}

.error-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #000000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    animation: slideDown 0.3s ease-out;
    margin-bottom: 30px;
}

.error-header {
    background: linear-gradient(135deg, var(--kleur-pompebled), #ef4444);
    color: white;
    padding: 1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 12px 12px 0 0;
}

.error-header::before {
    content: "⚠";
    font-size: 1.25rem;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-list li {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 0.75rem;
}

.error-list li:last-child {
    border-bottom: none;
}

.error-list li::before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}




/* ===========================================
   FOOTER STIJLEN
=========================================== */

.footer-desktop {
    display: none;
    background-color: var(--kleur-menu);
    color: white;
    padding: var(--spacing-xxl) var(--spacing-lg);
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.footer-content {
    max-width: 1400px;
    margin-left: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: white;
    transition: opacity 0.2s ease;
    font-size: var(--font-size-lg);
}

.footer-column a:hover {
    text-decoration: none;
    color: var(--kleur-hover);
    transition: 0.5s;
}

/*                                      */
/* ===== SIDEBAR LAYOUT STRUCTUUR ===== */
/*                                      */

.page-container {
    display: flex;
    gap: 30px;
    padding-left: 7px;
    padding-top: var(--spacing-lg);
}

.with-sidebar .main-content-area {
    flex: 0 0 560px;
    min-width: 0;
}

.with-sidebar .sidebar {
    flex: 0 0 400px;
}




/* ===========================================
   SIDEBAR STIJLEN
=========================================== */

.sidebar {
    padding-right: 10px;
}

.sidebar > div ul {
    list-style: none;
    margin: 0;
    padding: 0px;
}

.sidebar > div ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid grey;
}

.sidebar > div ul li a {
    flex: 1;
    min-width: 0;
}

.sidebar > div ul li:last-child {
    border-bottom: none;
}

.sidebar > div ul li img {
    width: 60px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.widget {
    background: var(--menu-bg);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #000000;
    transition: transform 2s ease, box-shadow 0.2s ease;
}

.widget-header, .form-header {
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--kleur-hover));
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 18px;
}

.widget-body {
    padding: var(--spacing-md);
}

/* Info cards (weer & inbraken) */
.info-cards {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.info-card {
    flex: 1;
    background: var(--menu-bg);
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #000000;
    text-align: center;
    transition: transform 2s ease, box-shadow 0.2s ease;
}

.widget:hover,
.info-card:hover {
    border: solid 1px var(--kleur-menu);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: 1s;
}

.info-card:hover {
    text-decoration: none;
    cursor: pointer;
}

.weather-display {
    padding-top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.weather-icon {
    font-size: 40px;
}

.weather-temp {
    font-size: 26px;
    font-weight: bold;
    color: var(--kleur-titel);
}

.crime-count {
    font-size: 26px;
    font-weight: bold;
    margin: 10px 0;
}

.crime-rising { color: #dc231f; }
.crime-falling { color: #28a745; }

/* Nieuws lijsten */
.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 10px 0;
    transition: padding-left 0.2s ease;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    padding-left: 10px;
}

.news-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    gap: 10px;
    loading: lazy;
}

.news-sub {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.crime-badge {
    background: var(--kleur-pompebled);
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Familie berichten */
.family-notice {
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid var(--kleur-hover);
    margin-bottom: 10px;
    border-radius: 4px;
}

.family-notice:last-child {
    margin-bottom: 0;
}

.notice-type {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.notice-text {
    font-size: 16px;
    color: var(--text-color);
}


/* Tabs voor historisch nieuws met schuivend effect */

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    background: grey;
    border-radius: 6px;
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.tabs::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc((100% - 8px) / 4);
    height: calc(100% - 4px);
    background: var(--kleur-hover);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tabs[data-active="0"]::before { 
    transform: translateX(0); 
}
.tabs[data-active="1"]::before { 
    transform: translateX(calc(100% + 2px)); 
}
.tabs[data-active="2"]::before { 
    transform: translateX(calc(200% + 4px)); 
}
.tabs[data-active="3"]::before { 
    transform: translateX(calc(300% + 4px)); 
}

.tab {
    flex: 1;
    padding: 6px 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.tab:hover {
    background: transparent;
    color: var(--text-color);
}

.tab.active {
    background: transparent;
    box-shadow: none;
    color: var(--text-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===========================================
   MOBILE STIJLEN
=========================================== */

.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    box-shadow: var(--shadow-up);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    height: 60px;
    z-index: var(--z-mobile-footer);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    position: relative;
    padding: var(--spacing-xs);
    transition: transform 0.2s ease;
    flex: 1;
    /* Voorkom touch highlights */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.mobile-footer-item:active {
    transform: none;
}

.mobile-footer-item:nth-child(3) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: none;
    width: 80px;
    z-index: 1;
}

.mobile-footer-item:nth-child(2),
.mobile-footer-item:nth-child(4) {
    margin: 0 25px;
}

.mobile-footer-item:nth-child(1) {
    max-width: 75px;
}

.mobile-footer-item:nth-child(2) {
    margin-left: 5px;
    min-width: 90px;
}

.mobile-footer-item:nth-child(4) {
    margin-left: 45px;
}

.mobile-footer-item img {
    height: 24px;
    transition: opacity 0.3s ease;
}

.mobile-footer-item span {
    font-size: 11px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.hamburger {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background-color: var(--kleur-menu);
    border-radius: 50%;
    padding: 16px;
    position: relative;
    top: -28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    /* Voorkom touch highlights */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hamburger:active {
    background-color: var(--kleur-hover);
    transform: none;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    background-color: var(--menu-bg);
    transition: transform 0.35s, background-color 0.3s ease;
    z-index: calc(var(--z-mobile-menu) + 1500);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: var(--spacing-lg);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 70vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu:not(.active) {
    transform: translateY(100%);
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(33.333vw, 120px);
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 12px;
    margin-bottom: 4px;
    /* Voorkom hover states op touch devices */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.menu-item:active {
    background-color: transparent;
}

.menu-item img {
    width: 34px;
    height: 34px;
    transition: opacity 0.3s ease;
}

.menu-item span {
    color: var(--menu-text);
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-mobile-menu-overlay);
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dark mode specifieke overlay */
[data-theme="dark"] .mobile-menu-overlay {
    background-color: rgba(0,0,0,0.6);
}



/* ===========================================
   RESPONSIVE MEDIA QUERIES
=========================================== */

.page-wrapper
{
    max-width: 1000px;
    padding-top: 15px;
    margin: 0px;
    background-color: var(--header-bg);
}

@media (max-width: 767px)
{
    .page-wrapper
    {
        padding-top: 0px;
        margin: 0px;
        background-color: var(--header-bg);
    }

    .main-content {
        margin-bottom: 52px;
        padding-right: 0px;
    }
        
    h1 { font-size: var(--font-size-xl); }
    h2 { font-size: var(--font-size-lg); }
    
    body.menu-open {
        overflow: hidden;
    }

    .sidebar {
        display: none;
    }
    
    .info-cards {
        flex-direction: column;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: 1 0 45%;
    }
    
    /* Verberg schuivend effect op mobiel vanwege complexiteit met wrapping */
    .tabs::before {
        display: none;
    }
    
    .tab.active {
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    [data-theme="dark"] .tab.active {
        background: var(--menu-bg);
    }
}

@media (min-width: 768px) {
    .mobile-footer {
        display: none;
    }
    
    .footer-desktop {
        display: block;
    }
    
    .main-content {
        margin-bottom: 0;
    }
    
    /* Verberg mobile menu elementen op desktop */
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .header {
        height: 60px;
    }
    
    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-icon-desktop {
        display: flex;
    }

    .header-icon-mobile {
        display: none;
    }

    .notification-badge
    {
        cursor: pointer;
        position: absolute;
        height: 34px;
        width: 34px;
        font-size: 18px;
        top: 30px;
        left: 35px;
        padding-top: 2px;
        text-align: center;
        border-radius: 50%;
        display: flex;
        background-color: var(--kleur-pompebled);
        color: white;
        justify-content: center;
        align-items: center; 
        z-index: 2;
        transform: none !important;
        transition: background-color 0.3s ease;
    }
}

@media (max-width: 1023px) {
    .desktop-nav {
        display: none !important;
    }

    .header {
        height: 45px;
    }

    .header-icon-desktop {
        display: none;
    }
    
    .header-icon-mobile {
        display: flex;
    }

    .main-content
    {
        margin-top: 45px;
    }
        
    .logo img {
        height: 48px;
        padding-top: 2px;
        margin-right: 0px;
    }

    .header-center {
        position: static;
        transform: none;
    }
    
    .header-content {
        justify-content: space-between;
        padding: 2px 11px 12px 10px;
    }

    .header-icon {
        width: 33px;
        height: 33px;
    }

    .header-icon img {
        width: 23px;
        height: 23px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 60px;
    }



    .notification-badge
    {
        display: flex;

        justify-content: center;
        align-items: center;
        text-align: center;

        padding-top: 3px;

        cursor: pointer;
        position: absolute;
        top: 5px;
        right: 20px;
        background-color: var(--kleur-pompebled);
        color: white;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: var(--font-size-sm);
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .page-container {
        flex-direction: column;
        padding-right: 0px;
    }
    
    .with-sidebar .main-content-area,
    .with-sidebar .sidebar {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
}


/* ===========================================
   NIEUWS BERICHT SECTIE
=========================================== */

@media (prefers-color-scheme: dark)
{
  .artikel a
  {
    font-weight : bold;
    text-decoration: underline;
    color       : var(--kleur-titel);
  }

  .artikel .artikel-body a.plak
  {
    font-weight : normal;
    text-decoration: none;
  }


  .artikel .top_display a
  {
      font-weight   : normal;
      text-decoration: none;
  }

  .share-menu .menu-item
  {
      font-weight     : bold;
      color           : var(--kleur-titel);
  }
}

.artikel
{
  margin-left: 0px;
  font-size:18px;
  margin-right: 2px;
  line-height:1.5
}

.artikel a:hover
{
  transition: 0.5s;
}

.artikel h1
{
   style: margin-top: 20px;
   padding: 15px 5px 0px 0px;
   font-weight: bold;
   color: var(--kleur-titel);
   font-size: 26px;
   line-height: 30px;
}

.artikel .artikel-meta
{
  margin-left: 5px;
  color:#666;
  font-size:.95rem;
}

.artikel .stip
{
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: grey;
  border-radius: 50%; 
  vertical-align: middle;
  margin-bottom: 2px;
  margin-left: 6px;
  margin-right: 6px;
}

.artikel .artikel-body a.plak
{
  color: var(--text-color);
}

.artikel .artikel-body a.plak:hover
{
  text-decoration: none;
}


.menu-toggle
{
      cursor: pointer;
}

.share-menu
{
    margin-top: 10px;
    margin-bottom: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.share-menu .menu-item
{
    cursor: pointer;
    padding: 8px;
    font-size: 18px;

}

.share-menu .options
{
    position: absolute;
    top: 40px;
    background-color: var(--menu-bg);
    min-width: 145px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
    border-radius: 4px;
    display: none; 
    border: 0px;
    z-index: 2;
}

.options a
{
    display: block;
    text-decoration: none;
    color: var(--kleur-tekst); 
}

.options a:hover
{
    border-radius: 5px;
    background-color: var(--kleur-item);
}

.options .menu-item:hover
{
    border-radius: 5px;
    background-color: var(--kleur-item); 
}

.options .menu-item.active
{
    border-radius: 4px;
}

.diele_kommentaar {   
    margin-right: 8px;
    cursor: pointer;
    float: right;
    width: 150px;
    padding: 2px;
    color: #fff;
    background-color: var(--kleur-menu);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 33px;
    transition:.4s ease-out background-color;
}

.diele_kommentaar {   
    color: #fff;
    font-weight: bold;
    text-decoration: none !important;
}

.diele_kommentaar:hover {
    background-color: green;
      color: white !important;
        text-decoration: none;
}

.reclamevrij-lezen {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

.reclamevrij-lezen > div {
    font-size: 16px;
    color: var(--kleur-tekst);
}