/**
 * Pameijer Print
 * Nagebouwd van het Drupal-thema "pameijer_microsite" met kleurinstelling F90-0099FF
 * (primaire kleur oranje #FF9900, secundaire kleur blauw #0099FF).
 */

:root {
  --primair: #FF9900;
  --secundair: #0099FF;
}

/**
 * Basis
 */
body {
  margin: 8px;
  background: #FFFFFF;
  color: #000000;
  font: 13px/1.231 arial, helvetica, clean, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  padding: 0;
  margin: 1em 0 0.5em 0;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: lowercase;
  color: var(--secundair);
}

p {
  margin: 1em 0;
}

a:link, a:visited {
  color: var(--secundair);
  font-weight: bold;
  text-decoration: none;
}

a:active, a:hover, a:focus {
  color: var(--secundair);
  text-decoration: underline;
}

img {
  border: 0;
}

table {
  width: 100%;
  margin-bottom: 2.5em;
  border-collapse: collapse;
}

th, td {
  padding: 0.3em;
  text-align: left;
}

th {
  border-bottom: 1px solid var(--secundair);
}

.visueel-verborgen {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
}

.naar-inhoud:focus {
  position: static !important;
  clip: auto;
  height: auto;
  width: auto;
}

/**
 * Pagina-indeling
 */
#page {
  width: 980px;
  margin: 0 auto 20px auto;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#logo img,
#slogan img {
  display: block;
}

#main {
  background: url("../img/achtergrond.jpg") no-repeat;
  border-top: 2px solid var(--primair);
  padding-bottom: 25px;
  min-height: 505px;
  display: flow-root;
}

#content {
  float: left;
  width: 620px;
  margin-left: 20px;
}

#sidebar {
  float: right;
  width: 300px;
  margin-right: 20px;
}

#content .section,
#sidebar .section {
  background: rgba(255, 255, 255, 0.75);
  padding: 20px;
  border-top: 12px solid var(--primair);
}

#content h1 {
  margin-top: 0;
}

#sidebar .block {
  margin-bottom: 2.5em;
}

#sidebar .block:last-child {
  margin-bottom: 0;
}

#sidebar h2 {
  margin-top: 0;
}

#footer {
  padding: 0 20px;
}

/**
 * Hoofdmenu: knoppen als afbeelding (sprite van 2 x 26px).
 * Normaal: witte tekst op blauw (onderste helft); actief/hover: blauw op wit (bovenste helft).
 */
.main-menu {
  padding: 20px 0 20px 16px;
  margin: 0;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
}

.main-menu li {
  margin: 0 4px;
  padding: 0;
}

.main-menu a {
  display: block;
  height: 26px;
  background-color: transparent;
  background-position: 0 -26px;
  background-repeat: no-repeat;
  border: 1px solid #FFFFFF;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu a.active {
  background-position: 0 0;
  border-color: var(--secundair);
}

.main-menu a.home       { background-image: url("../img/menu/home.png");       width: 91px; }
.main-menu a.prijslijst { background-image: url("../img/menu/prijslijst.png"); width: 111px; }
.main-menu a.locaties   { background-image: url("../img/menu/locaties.png");   width: 104px; }
.main-menu a.contact    { background-image: url("../img/menu/contact.png");    width: 104px; }

/**
 * Diashow op de voorpagina (was: field_slideshow, effect scrollLeft, 4 s per foto)
 */
.diashow {
  position: relative;
  overflow: hidden;
  max-width: 580px;
  aspect-ratio: 580 / 500;
}

.diashow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: translateX(100%);
}

.diashow img.actief {
  transform: translateX(0);
}

.diashow img.weg {
  transform: translateX(-100%);
}

.diashow.loopt img.actief,
.diashow.loopt img.weg {
  transition: transform 1s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .diashow.loopt img.actief,
  .diashow.loopt img.weg {
    transition: none;
  }
}

/* Zonder JavaScript: alleen de eerste foto */
.no-js .diashow img:first-child {
  transform: none;
}

/**
 * Locaties: kaarten
 */
.kaart {
  max-width: 580px;
  aspect-ratio: 580 / 360;
}

.kaart iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/**
 * Prijslijst
 */
.tabel-wrapper {
  overflow-x: auto;
}

table.bijlagen td.grootte {
  white-space: nowrap;
}

.bestand-pdf::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: -3px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h7l3 3v11H3z' fill='%23fff' stroke='%23999'/%3E%3Cpath d='M10 1v3h3' fill='none' stroke='%23999'/%3E%3Crect x='4' y='9' width='8' height='4' fill='%23c00'/%3E%3C/svg%3E");
}

/**
 * Sidebar
 */
.facebook-link a::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3' fill='%231877F2'/%3E%3Cpath d='M11 16v-6h2l.3-2.3H11V6.3c0-.7.2-1.1 1.1-1.1h1.2V3.1A16 16 0 0 0 11.6 3C9.9 3 8.7 4 8.7 5.9v1.8H6.8V10h1.9v6z' fill='%23fff'/%3E%3C/svg%3E");
}

/**
 * Smalle schermen (de oude site was vast 980px breed)
 */
@media (max-width: 1000px) {
  body {
    margin: 0;
  }

  #page {
    width: auto;
  }

  #header {
    padding: 8px 16px 0;
  }

  #logo img {
    width: 182px;
    height: auto;
  }

  #slogan img {
    width: 120px;
    height: auto;
  }

  #main {
    background-size: 100% auto;
  }

  .main-menu {
    padding: 16px 12px;
  }

  #content,
  #sidebar {
    float: none;
    width: auto;
    margin: 0 16px 20px;
  }

  #content .section,
  #sidebar .section {
    padding: 16px;
  }
}
