/* ============================================================
   keurmerken.net — moderne responsive CSS
   ============================================================ */

:root {
  --groen-donker:   #2d6a4f;
  --groen-middel:   #52b788;
  --groen-licht:    #d8f3dc;
  --groen-achter:   #f1f8f0;
  --bruin-donker:   #4a3520;
  --bruin-middel:   #7a5c38;
  --tekst:          #2d3a2e;
  --tekst-licht:    #5a6b5c;
  --wit:            #ffffff;
  --schaduw:        0 2px 8px rgba(0,0,0,0.08);
  --radius:         6px;
}

* { box-sizing: border-box; }

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--groen-achter);
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--tekst);
  font-size: 19px;
  line-height: 1.7;
}

a { color: var(--groen-donker); }

h3 {
  color: var(--groen-donker);
  font-size: 1.1em;
  font-weight: 700;
  margin: 0 0 6px;
  padding: 0;
  clear: both;
}

h4, h5, h6 { margin: 0; padding: 0; clear: both; }

ol {
  list-style-type: decimal;
  padding-left: 0;
  margin-left: 20px;
}

/* ============================================================
   WRAPPER & CONTAINER
   ============================================================ */

.wrapper {
  min-height: 100vh;
  background: none;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
}

.clear { clear: both; }

/* Keurmerk detail weergave */
.keurmerk-detail {
  font-size: 0.95em;
}

.keurmerk-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.keurmerk-detail-header img {
  max-height: 100px;
  width: auto;
}

.btn-terug {
  display: inline-block;
  padding: 5px 12px;
  background: var(--groen-donker);
  color: var(--wit) !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85em;
  white-space: nowrap;
}

.btn-terug:hover {
  background: var(--bruin-middel);
}

.keurmerk-detail-body p {
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ============================================================
   HEADER: zoekbalk, icoon, titel, navigatie
   ============================================================ */

/* Header-area: icoon + titel + zoekbalk op één rij */
.header-area {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 10px 0 8px;
  clear: both;
}

/* Zoekbalk */
#searchBar {
  width: 220px;
  float: none;
  margin: 0 0 4px auto;
  background: var(--wit);
  border-radius: var(--radius);
  border: 1px solid #c8e6c9;
  box-shadow: var(--schaduw);
  overflow: hidden;
  align-self: flex-start;
  flex-shrink: 0;
}

#searchBar .head { display: none; }

#searchBar .content {
  background: var(--wit);
  height: auto;
  padding: 4px 8px;
  display: flex;
  align-items: center;
}

#searchBar .content form {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

#searchBar .content form input.search {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 4px;
  width: auto;
  font-size: 0.9em;
  color: var(--tekst);
}

#searchBar .content form input.button {
  width: 18px;
  height: 18px;
  float: none;
  margin: 0;
  cursor: pointer;
}

/* Icoon-box (random logo linksboven) */
.icon {
  width: 90px;
  height: 90px;
  background: var(--groen-achter);
  border-radius: var(--radius);
  float: none;
  flex-shrink: 0;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.icon img {
  max-width: 95px;
  max-height: 80px;
  opacity: 0.85;
  margin: 0;
  filter: none;
}

/* Paginatitel */
#title {
  margin: 0;
  padding: 0;
  clear: none;
  float: none;
  flex: 1;
  color: var(--groen-donker);
}

#title h1 {
  font-size: 1.6em;
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: var(--groen-donker);
}

#title h2 {
  font-size: 1em;
  margin: 2px 0 0;
  padding: 0;
  font-weight: 400;
  color: var(--tekst-licht);
  line-height: 1.3;
}

/* Navigatie */
#navigation {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  clear: both;
  background: var(--groen-donker);
  border-radius: var(--radius) var(--radius) 0 0;
}

#navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  list-style-image: none;
  display: flex;
  border: none;
}

#navigation ul li {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

#navigation ul li a {
  display: block;
  width: auto;
  height: auto;
  padding: 9px 20px;
  background: none;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-radius: 0;
  transition: background 0.15s, color 0.15s;
}

#navigation ul li a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--wit);
}

#navigation ul li a.selected,
#navigation ul li a.selected:hover {
  background: var(--groen-achter);
  color: var(--groen-donker);
  font-weight: 700;
}

/* ============================================================
   BODY: sidebar + content
   ============================================================ */

#body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0 2px;
  float: none;
  margin-bottom: 0;
  clear: both;
}

/* Sidebar */
#body .sidebar {
  width: 230px;
  flex-shrink: 0;
  margin: 0;
  float: none;
  font-size: 0.9em;
  color: var(--tekst);
}

#body .sidebar h3 {
  background: var(--groen-donker);
  color: var(--wit);
  padding: 9px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  clear: none;
}

#body .sidebar .content {
  background: var(--wit);
  border: 1px solid #c8e6c9;
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0;
  padding: 0;
  width: auto;
  float: none;
  color: var(--tekst);
  box-shadow: var(--schaduw);
}

#body .sidebar ul.links {
  list-style: none;
  list-style-image: none;
  padding: 0;
  margin: 0;
  border: none;
}

#body .sidebar ul.links li {
  padding: 0;
  height: auto;
  border-bottom: 1px solid #edf5ee;
}

#body .sidebar ul.links li:last-child { border-bottom: none; }

#body .sidebar ul.links li a {
  padding: 4px 12px;
  display: block;
  color: var(--bruin-donker);
  text-decoration: none;
  font-size: 0.85em;
  transition: background 0.12s;
}

#body .sidebar ul.links li a:hover {
  background: var(--groen-licht);
}

#body .sidebar ul.links li.balk a {
  background: var(--groen-licht);
  font-weight: 600;
  color: var(--groen-donker);
}

/* Hoofd-content */
#body .content {
  flex: 1;
  min-width: 0;
  float: none;
  width: auto;
  margin: 0;
  padding: 16px 20px;
  font-size: 0.85em;
  color: var(--tekst);
  background: var(--wit);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  border: 1px solid #e0ede1;
}

#body .content h3 {
  color: var(--groen-donker);
  margin: 0 0 4px;
  clear: none;
}

#body .content .byline {
  color: var(--tekst-licht);
  font-style: italic;
  font-size: 0.88em;
  font-variant: normal;
  font-weight: normal;
  margin-bottom: 14px;
}

#body .content p {
  margin: 0 0 1em;
  padding: 0;
  line-height: 1.75;
}

#body .content li.balk {
  background: var(--groen-licht);
}

#body .content .image {
  border: none;
  padding: 6px 4px;
}

#body a { color: var(--groen-donker); }
#body h3 a { text-decoration: none; }

/* Formulier-elementen in body */
#body form input,
#body form textarea,
#body .sidebar select {
  border: 1px solid #b2d4b5;
  background: var(--groen-achter);
  color: var(--tekst);
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
}

#body form input.submit { width: auto; float: right; }

/* ============================================================
   CONTACT FORM
   ============================================================ */

#body .content .contact {
  padding: 0;
}

#body .content .contact input {
  width: 60%;
  border: 1px solid #b2d4b5;
  padding: 8px;
  border-radius: 4px;
  background: var(--wit);
}

#body .content .contact textarea {
  width: 75%;
  border: 1px solid #b2d4b5;
  padding: 8px;
  border-radius: 4px;
  background: var(--wit);
}

#body .content .contact input.sent {
  display: block;
  margin: 10px 0 0 auto;
  width: auto;
  background: var(--groen-donker);
  color: var(--wit);
  border: none;
  padding: 9px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: background 0.15s;
}

#body .content .contact input.sent:hover {
  background: var(--groen-middel);
}

#body .content .contact input:focus,
#body .content .contact textarea:focus {
  outline: 2px solid var(--groen-middel);
  background: var(--wit);
}

/* ============================================================
   HOOFD-ZOEKBALK (menu_search.php)
   ============================================================ */

#searchBar_main {
  width: 100%;
  max-width: 500px;
  height: auto;
  float: none;
  margin: 0 0 20px 0;
  background: var(--wit);
  border-radius: var(--radius);
  border: 1px solid #c8e6c9;
  box-shadow: var(--schaduw);
  overflow: hidden;
}

#searchBar_main .head_main { display: none; }

#searchBar_main .content_main {
  background: var(--wit);
  height: auto;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}

#searchBar_main .content_main form {
  display: flex;
  align-items: center;
  width: 100%;
}

#searchBar_main .content_main form input.search_main {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 6px;
  width: auto;
  font-size: 1em;
}

#searchBar_main .content_main form input.button_main {
  width: 20px;
  height: 20px;
  float: none;
  margin: 0;
  cursor: pointer;
}

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

#footer {
  clear: both;
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  bottom: auto;
}

#footHead {
  background: var(--bruin-middel);
  padding: 10px 0;
  clear: both;
}

#footHead .container {
  display: flex;
  gap: 0;
  padding: 0 15px;
}

#footHead .head {
  color: var(--wit);
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 33%;
  float: none;
  height: auto;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}

#footBody {
  background: var(--bruin-donker);
  padding: 16px 0;
  clear: both;
  width: 100%;
}

#footBody .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 15px;
  margin: 0 auto;
}

#footBody .content {
  flex: 1;
  min-width: 180px;
  width: auto;
  float: none;
  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  color: #dda;
  padding: 0;
  margin: 0;
}

#footer #footBody ul {
  list-style: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

#footer #footBody ul li {
  padding: 0;
  margin: 0 0 0 10px;
  height: auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#footer #footBody ul li a {
  color: #dda;
  text-decoration: none;
  display: block;
  padding: 5px 3px;
  font-size: 0.85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}

#footer #footBody ul li a:hover {
  color: var(--wit);
  background: none;
  overflow: visible;
  text-overflow: inherit;
}

#footBody .showcase {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
  justify-content: center;
}

#footBody .showcase img {
  padding: 2px;
  margin: 0;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
}

#copyright {
  background: #2a1e10;
  color: #dda;
  border-top: 1px solid rgba(255,255,255,0.1);
  height: auto;
  padding: 8px 0;
  font-size: 0.85em;
}

#copyright a { color: #dda; }

#copyright .container {
  text-align: right;
  padding: 0 15px;
}

/* Mobiele nav: standaard verborgen op desktop */
.mobile-nav { display: none; }
.mob-footer-nav { display: none; }

/* ============================================================
   RESPONSIVE — mobiel (max 768px)
   ============================================================ */

@media (max-width: 768px) {

  .container { padding: 0 10px; }

  /* Zoekbalk bovenaan vol breed */
  #searchBar {
    float: none;
    width: 100%;
    margin: 10px 0;
  }

  /* Kleiner icoon */
  .icon {
    width: 80px;
    height: 75px;
    margin: 10px 12px 0 0;
  }

  .icon img {
    max-width: 65px;
    max-height: 60px;
  }

  #title h1 { font-size: 1.3em; }
  #title h2 { font-size: 0.95em; }

  /* Navigatie: verticaal stapelen */
  #navigation {
    margin-top: 10px;
    border-radius: var(--radius);
  }

  #navigation ul {
    flex-direction: column;
  }

  #navigation ul li a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
  }

  #navigation ul li:last-child a {
    border-bottom: none;
  }

  /* Body: sidebar boven content */
  #body {
    flex-direction: column;
    gap: 14px;
    padding: 12px 0 30px;
  }

  #body .sidebar {
    width: 100%;
  }

  #body .content {
    padding: 16px;
  }

  /* Contact formulier */
  #body .content .contact input,
  #body .content .contact textarea {
    width: 100%;
  }

  #body .content .contact input.sent {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  #footHead .container {
    flex-direction: column;
    gap: 4px;
  }

  #footHead .head { width: 100%; }

  #footBody .container {
    flex-direction: column;
  }

  #footBody .showcase {
    justify-content: center;
  }

  /* Verberg desktop header/nav/sidebar */
  .header-area { display: none !important; }
  #navigation  { display: none !important; }
  #body .sidebar { display: none !important; }
  #body { padding-top: 6px; }

  /* Toon mobiele nav */
  .mobile-nav {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #c8e6c9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--wit);
  }

  .mob-search-bar {
    padding: 8px 10px;
    background: var(--wit);
    border-bottom: 1px solid #e0ede1;
  }

  .mob-search-bar form {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mob-search-bar input[type="text"] {
    flex: 1;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.95em;
    outline: none;
    background: var(--groen-achter);
  }

  .mob-search-bar input[type="image"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mob-site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--groen-achter);
    border-bottom: 1px solid #c8e6c9;
  }

  .mob-site-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }

  .mob-site-header .mob-title h1 {
    font-size: 1.1em;
    margin: 0;
    padding: 0;
    color: var(--groen-donker);
  }

  .mob-site-header .mob-title h2 {
    font-size: 0.78em;
    margin: 0;
    padding: 0;
    color: var(--tekst-licht);
    font-weight: 400;
  }

  .mob-panel {
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .mob-panel:last-child { border-bottom: none; }

  .mob-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    background: var(--groen-donker);
    color: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    font-family: inherit;
    user-select: none;
  }

  .mob-panel-header:hover { background: var(--bruin-middel); }

  .mob-arrow { font-size: 0.8em; }

  .mob-panel-body {
    background: var(--wit);
    padding: 12px 14px;
    border-left: 3px solid var(--groen-licht);
  }

  .mob-intro {
    font-size: 0.85em;
    line-height: 1.6;
    color: var(--tekst);
  }

  .mob-intro p { margin: 0 0 8px; }
  .mob-intro p:last-child { margin-bottom: 0; }
  .mob-intro a { color: var(--groen-donker); }

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

  .mob-links li {
    border-bottom: 1px solid #edf5ee;
  }

  .mob-links li:last-child { border-bottom: none; }

  .mob-links li a {
    display: block;
    padding: 8px 10px;
    color: var(--bruin-donker);
    text-decoration: none;
    font-size: 0.88em;
  }

  .mob-links li a:hover { background: var(--groen-licht); }

  .mob-links li.mob-active-cat a {
    font-weight: 700;
    color: var(--groen-donker);
    background: var(--groen-licht);
  }

  .mob-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 6px 6px;
    border-top: 1px solid #c8e6c9;
    background: var(--wit);
  }

  .mob-submenu h3,
  .mob-submenu .byline,
  .mob-submenu br { display: none; }

  .mob-submenu a { display: inline-flex; }
  .mob-submenu img { display: block; }

  .mob-panel-link {
    display: block;
    padding: 12px 14px;
    background: var(--groen-donker);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mob-panel-link:hover { background: var(--bruin-middel); color: var(--wit); }

  .mob-panel-link.mob-active {
    background: var(--groen-achter);
    color: var(--groen-donker);
  }

  /* Float-clearing breaks niet nodig op mobiel */
  br.clear { display: none; }

  /* Contact-link onder de page content */
  .mob-footer-nav {
    display: block;
    margin: 10px 0 0;
    border-radius: var(--radius);
    overflow: hidden;
  }
}
