/*
Theme Name: Twenty Twenty-Five WIZ
Theme URI: 
Author: Leo Pors
Author URI: 
Description: Child thema voor 2025.
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: twenty-twenty-five-child
Tags: 
*/

/* Header: Maak de header sticky bovenaan */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: all 0.3s ease-in-out;
  background: transparent;
}
/*Plaatst het logo links en maakt het onzichtbaar in de menubalk bovenaan. */
.logo
{
text-align:left;
}
.logo img
{
display: none;
}
/* De visuele 2e rij met achtergrond (strand & vogels) */
.sticky-header .visual-row {
  transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

.visual-row {
  height: auto;
  min-height: 60px;
  width: 100%;
}

/* Bij scrollen: verberg de visuele rij op mobiele schermen*/
@media screen and (max-width: 768px) {
.sticky-header.scrolled .visual-row {
  opacity: 0;
  height: 0;
  overflow: hidden;
  display: none !important;
}
.logo img
{
    height: 60px;
    width: 60px;
    display: flex !important;
}
/* Optioneel: verklein logo of paddings ook bij scroll */
.site-logo {
  img {
    /*max-height: 40px;
    width: auto;*/
    display: none;
  }
}
}

/* Tekst grootte */
body {
    font-size: 1.25rem; /* ≈ 18px */
    line-height: 1.3 ;
    /*max-width: 65ch;  fijne leesbreedte */
  }
  h1 {
    font-size: 2.5rem; /* ≈ 40px */
  }
  
  h2 {
    font-size: 2rem; /* ≈ 32px */
  }
  
  h3 {
    font-size: 1.75rem; /* ≈ 28px */
  }
  
  h4 {
    font-size: 1.5rem; /* ≈ 24px */
  }
  
  h5 {
    font-size: 1.25rem; /* ≈ 20px */
  }
  
  h6 {
    font-size: 1rem; /* ≈ 16px */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .container p {
    max-width: 65ch;
  }
  
/* Algemene linkstijl */
a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline: 1px solid lightgrey;
}

/* Typografie verbeteringen */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
    text-wrap: pretty;
}

/* "Lees meer" knop als blok weergeven */
.more-link {
    display: block;
}

.wp-block-button .wp-block-button__link {
    text-transform: none;
}

/*Groen kleur button bij mouse over knop
wp-block-button {a:hover{
    font-weight:bolder;
    background:#4F6228 !important;
    text-decoration:underline;
    text-transform: uppercase;}
}*/

/*Bij mouse-over wordt de backgoundcolor groen en de tekst wit en een dun lijntje eronder*/
.wp-block-buttons {
    a:hover{
        font-weight:bold;
        background:#4F6228 !important;
        text-decoration:underline;
        text-transform: uppercase;
    }
}

/* Navigatie menu verbeteringen */

/* margin onder het navigatiemenu*/
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}
/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}
/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/* Actieve menu link */
.current-menu-item a {
    font-weight: bolder; 
    font-size: 1.2rem !important;
    color: #4F6228 ; 
    background-color: #e6eae5 ;
    border-bottom: 4px solid #4F6228;
}
/*Bij hover menu donker groene achtergrond en witte tekst*/
.wp-block-navigation a:hover {
    font-weight: bolder; 
    color: #fff !important;
    background-color:#4F6228; 
    border-bottom: 1px solid #4F6228 !important;
}

/* Toon submenu bij hover op desktop */
@media (min-width: 783px) {
  .wp-block-navigation__submenu-container {
    display: none;
    position: absolute;
    background-color: white; 
    z-index: 999;
    padding: 0;
    margin-top: 0;
  }

  .wp-block-navigation .wp-block-navigation-item:hover > .wp-block-navigation__submenu-container {
    display: block;
  }

  .wp-block-navigation .wp-block-navigation-item.has-child {
    position: relative; /* Zorgt dat submenu goed gepositioneerd is */
  }
}

/* Verberg de paginatitel (H1) standaard */
.wp-block-post-title {
    display: none;
}

/* Verberg de menutekst standaard */
.mobile-menu-title {
    display: none!important;
}

/* Mobiele weergave optimalisaties */
@media (max-width: 600px) {
    /* Mobiele menu container */
    .wp-block-navigation__responsive-container {
        max-width: 60%;
        max-height: 60vh;
        top: 4vh;
        left: 13dvb ;
        border-radius: 15px;
        color: #4F6228 !important; /* kleur van de header*/
        background-color:rgba(123, 136, 130, 1) !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .wp-block-navigation__responsive-container::before {
        content: "Navigatie"; /* Of 2, afhankelijk van wat je wilt */
        text-align: center;
        font-weight: bold;
        font-size: 1.5rem;
        width: 100%;
        height: 50px; /* Zorgt ervoor dat de hoogte 50px blijft */
        background-color: whitesmoke;
        position: absolute;
        top: 0; /* Zorgt ervoor dat de witte balk helemaal bovenaan begint */
        left: 0; /* Zorgt ervoor dat er geen verschuiving is */
        padding: 5px 0; /* Zorgt ervoor dat de tekst goed gecentreerd is */
        box-sizing: border-box; /* Zorgt ervoor dat de hoogte inclusief padding blijft */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Menu-items */
    .wp-block-navigation__responsive-container ul li {
        width: 100%;
        display: block; /*deze is mogelijk overbodig*/
        border-bottom: 1px solid #ccc;
        margin-bottom: 0,5%;
        display: flex ;
        align-items: center !important; /* Zorgt voor verticale uitlijning */
    }
    
/*Submenu. 
      Verminder witruimte boven submenu */
    .wp-block-navigation__submenu-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* Verberg onderlijn onder laatste submenu-item */
    .wp-block-navigation__submenu-container li:last-child {
        border-bottom: none !important;
}

    /* Voeg onderlijnen toe aan alle andere submenu-items */
    .wp-block-navigation__submenu-container li {
        border-bottom: 1px solid #ccc;
        margin-bottom: 5%;
        margin-left: 5%;
}
    /* Menu lijst */
    .wp-block-navigation__responsive-container ul {
        list-style: none;
        padding: 1%;
        margin: 1%;
        width: 100%;
        text-align: left;
    }
    /* Menu links */
    .wp-block-navigation__responsive-container ul li a {
        display: block;
        width: 100%;
        text-align: left;
        margin-left: 5%;
        margin-bottom: 3%;
        color: white !important;
        text-decoration: none;        
    }
    .wp-block-navigation__responsive-container .current-menu-item a {
        font-weight: bolder;
        font-size: 1.2rem;
        font-style: italic;
    }

/* Voorkomt dat het menu standaard zichtbaar is */
    .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none;
    }

/* Haalt de onderstreping van de actieve pagina in het mobiele menu weg */
    .wp-block-navigation__responsive-container .current-menu-item a {
        border-bottom: none;
        background-color: transparent;
    }
/* Haalt de focus outline weg voor het mobiele menu */
    .wp-block-navigation__responsive-container a:focus {
        outline: none;
    }
    .wp-block-post-title {
        display: block;
        text-align: center; /* Optioneel: centreer de titel */
        font-size: 1.2em; /* Pas de grootte aan indien nodig */
        font-weight: bold;
        margin: 10px 0; /* Optionele marge */
    }
    .mobile-menu-title {
        display: block !important;
        position: relative;
        text-align: center;
        color: #4F6228 !important;
    }
}
@media (max-width: 768px) {
/* Logo verkleinen voor mobiele schermen */
    .wp-block-site-logo { 
        max-width: 35%; /* Pas de breedte aan naar wens */
        height: auto; /* Houd de verhoudingen correct */
        text-align: left;
        padding: 0 !important;
    }
/* Titel verkleinen voor mobiele schermen*/
    .wp-block-site-title {
        font-size: 1.2em !important;
        padding-top: 0 !important;
    }

/* Koptekst grootte voor mobiel */
    h1 { font-size: 1.75rem ; } /* 28px */
    h2 { font-size: 1.5rem ; }  /* 24px */
    h3 { font-size: 1.25rem ; } /* 20px*/
    h4 { font-size: 1.125rem ; } /* 18px*/
    body { font-size: 0.9375rem; } /* 15px */
 }

/* contactformulier aanpassen*/
    .wpcf7-form input,
    .wpcf7-form textarea {
        border: 0.5px solid #4F6228;
        /*border-bottom: 1px solid #4F6228;*/
        padding: 10px;
        font-size: 1em;
    }

    .wpcf7-form input[type="submit"] {
        background-color: #7b647b;
        color: white;
        padding: 10px 40px;
        margin-left: 0%;
        border: 1px solid  #686868 ;
        border-radius: 30px;
        cursor: pointer;
    }
    .wpcf7-form input[type="submit"]:hover {
        font-weight:bold;
        background:#4F6228 !important;
        text-decoration:underline;
        text-transform: uppercase;
    }
/* Foto-slider toevoegen met afgeronde hoeken*/
.foto-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16/12; /* Of kies wat past: 16/9 3 / 4, etc. */
    overflow: hidden;
  }
  
  .foto-slider .slide {
    position: absolute;
    top: 0;
    left: 0%;
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }
  
.foto-slider img.actief {
    opacity: 1;
    z-index: 2;
  }
/* ronde hoeken van 30px bij de foto's*/
  .foto-slider.round {
    border: 2px solid #4F6228;
    border-style: solid;
    border-radius: 30px ;
    overflow: hidden;
  }

.partner-logos {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr))!important;
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 1rem;
}

.partner-logos img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
}  
  
table.download-log {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

table.download-log th,
table.download-log td {
    border: 1px solid #ddd;
    padding: 8px;
}

table.download-log th {
    background-color: #f4f4f4;
    font-weight: bold;
}

table.download-log td:nth-child(4) {
    text-align: center; /* Centreer de aantallen */
}

table.download-log tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.download-log tr:hover {
    background-color: #eef;
}

.icon-pdf {
    margin-right: 6px;
}
