/* Luc en Roel - stijl naar de oude site: Outfit, zwart-wit, foto's centraal */

* { box-sizing: border-box; }

/* vloeiende paginawissel (filterpills = echte navigatie): oude pagina blijft
   staan tot de nieuwe klaar is, dan een korte cross-fade — geen witte flits.
   Chrome/Safari; andere browsers negeren dit gewoon. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #000;
  background: #fff;
}

a { color: #333; text-decoration: underline; }
a:hover { text-decoration: none; }
strong { font-weight: 600; }

/* kop */
.kop {
  max-width: 1170px;
  margin: 0 auto;
  padding: 35px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 135px;
}

.kop .logo img { height: 95px; display: block; }

.kop .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.kop .menu a {
  color: #7D7D7D;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  line-height: 26px;
  display: inline-block;
}

.kop .menu a:hover { border-bottom: 1px solid #7D7D7D; }
.kop .menu li.current a { color: #000; border-bottom: 1px solid #000; }

/* klantportaal als pill-knop in het menu */
.kop .menu li.portaal a {
  border: 1px solid #7D7D7D;
  border-radius: 2em;
  padding: 0 14px;
  line-height: 24px;
}
.kop .menu li.portaal a:hover { border-color: #000; color: #000; }

/* inhoud */
main {
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px;
}

/* filterpills */
.filter { text-align: center; margin-bottom: 10px; }
.filter a {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  display: inline-block;
  line-height: 24px;
  padding: 2px 15px;
  margin: 2px;
  border-radius: 2em;
  text-decoration: none;
  color: #333;
}
.filter a:hover, .filter a.current { background-color: #eee; }

/* masonry-collage: css-kolommen, geen javascript */
.grid {
  columns: 3 320px;
  column-gap: 10px;
}

.grid a {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  break-inside: avoid;
}

/* zachte placeholder zolang een thumb nog laadt (geen hard wit gat) */
.grid a:not(.introtegel) { background: #f4f4f4; }

.grid a img {
  width: 100%;
  height: auto; /* width/height-attributen reserveren alleen de beeldverhouding */
  display: block;
  transition: transform 500ms ease;
}

.grid a .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 500ms ease;
}

.grid a .titel {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
}

.grid a .titel h4 {
  margin: 0;
  color: #000;
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 500ms ease, transform 500ms ease;
}

.grid a:hover .overlay { opacity: 1; }
.grid a:hover .titel h4 { opacity: 1; transform: scale(1); }
.grid a:hover img { transform: scale(1.2); }

/* intro als tekst-tegel in de collage */
.grid a.introtegel {
  cursor: default;
  text-decoration: none;
  padding: 10px 25px 25px;
  box-sizing: border-box;
}

.grid a.introtegel h1 {
  font-size: 26px;
  font-weight: 200;
  margin: 10px 0 5px;
}

.grid a.introtegel p {
  line-height: 1.75em;
  color: #5C5C5C;
  margin: 8px 0;
}

/* tekstpaginas: kopbreedte met dezelfde 20px-inset als het foto-grid */
.tekstblok {
  margin: 0 auto;
  padding: 0 20px 40px;
}

.tekstblok h1 {
  font-size: 36px;
  font-weight: 200;
  margin-top: 20px;
}

.tekstblok h2 { font-size: 22px; font-weight: 500; margin-top: 35px; }
.tekstblok p, .tekstblok li { line-height: 1.75em; }
.tekstblok ul { padding-left: 20px; }

/* webformulieren: rekenhulp (prijzen) + contactformulier — smal, links uitgelijnd, geen kader */
.webformulier {
  max-width: 560px;
  margin: 45px 0 0;
}

.webformulier h2 { margin-top: 0; }

.webformulier .veld { margin-bottom: 18px; }

.webformulier label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  color: #7D7D7D;
  margin-bottom: 5px;
}

.webformulier input, .webformulier select, .webformulier textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
}

.webformulier textarea { max-width: 100%; resize: vertical; }

.webformulier input:focus, .webformulier select:focus, .webformulier textarea:focus {
  outline: none;
  border-color: #000;
}

.webformulier .hint {
  font-size: 13px;
  color: #7D7D7D;
  margin: 6px 0 0;
  line-height: 1.5em;
}

/* luxe-slider rekenhulp */
.webformulier input[type="range"] {
  width: 100%;
  padding: 0;
  border: none;
  accent-color: #000;
  cursor: pointer;
}

.webformulier .schaal-uitersten {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #7D7D7D;
  margin-top: 4px;
}

.webformulier .hp { position: absolute; left: -9999px; }

.webformulier button {
  margin-top: 5px;
  padding: 12px 30px;
  background: #000;
  color: #fff;
  border: none;
  font-family: 'Outfit', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

.webformulier button:hover { background: #333; }
.webformulier button:disabled { background: #999; cursor: wait; }

#rh-resultaat, #cf-resultaat { margin-top: 20px; line-height: 1.75em; }
#rh-resultaat.gelukt, #cf-resultaat.gelukt { border-left: 3px solid #000; padding-left: 15px; }
#rh-resultaat.fout, #cf-resultaat.fout { color: #a33; }

/* bio: twee kolommen — tekst breed links, foto smaller rechts */
.biokolommen {
  display: flex;
  gap: 45px;
  align-items: flex-start;
}

.biokolommen .biotekst { flex: 1; min-width: 0; }
.biokolommen .biotekst > p:first-child { margin-top: 0; }

.biokolommen .biofotokolom { width: 340px; flex-shrink: 0; }

.biofoto { width: 100%; display: block; }

@media (max-width: 700px) {
  .biokolommen { flex-direction: column; gap: 0; }
  .biokolommen .biofotokolom { width: 100%; margin-bottom: 20px; order: -1; }
}

/* partnerlijst op de bio: rustige lijst, namen zwart, rol grijs */
.tekstblok ul.partnerlijst {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.partnerlijst li {
  line-height: 1.75em;
  margin-bottom: 6px;
  color: #5C5C5C;
}

.partnerlijst a {
  color: #000;
  text-decoration: none;
}

.partnerlijst a:hover { text-decoration: underline; }

.categorie-intro { text-align: center; max-width: 950px; padding-bottom: 10px; }
.categorie-intro p { color: #5C5C5C; }

/* projectpagina: twee kolommen zoals de oude site */
.projectkolommen {
  display: flex;
  align-items: flex-start;
  /* zelfde lucht onder de kop als op de homepage (daar duwt de filterbalk het grid omlaag) */
  margin-top: 60px;
}

.kolom-info { width: 30%; }
.kolom-fotos { width: 70%; }

.kolom-info h1 { font-size: 36px; font-weight: 200; margin-top: 20px; }
.kolom-info p { line-height: 1.75em; }
.projectmeta { font-size: 14px; }

.review {
  margin: 25px 0 0;
  padding: 0;
}

.review p {
  font-style: italic;
  color: #5C5C5C;
}

/* foto's 90% van de kolom met 10% marge als gutter — zelfde maat als de oude site */
.kolom-fotos img {
  width: 90%;
  margin-left: 10%;
  display: block;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .projectkolommen { flex-direction: column; gap: 0; margin-top: 20px; }
  .kolom-info, .kolom-fotos { width: 100%; }
  .kolom-fotos img { width: 100%; margin-left: 0; margin-bottom: 10px; }
}

.klein { font-size: 13px; color: #7D7D7D; }
.klein a { color: #7D7D7D; }

/* voet */
.voet {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 20px 30px;
  text-align: center;
  margin-top: 40px;
}

.voet p { margin: 8px 0; font-size: 14px; }
.voet .adres { line-height: 1.7em; margin: 14px 0; }
.voet .voetlogo { height: 64px; display: block; margin: 18px auto 25px; }

/* mobiel: hamburger-menu (css-only via checkbox), filter op één scrollregel,
   tekst uitgevuld */
.menuknop-check, .menuknop { display: none; }

@media (max-width: 700px) {
  .kop { flex-wrap: wrap; min-height: 0; padding: 12px 20px; }
  .kop .logo img { height: 56px; }

  .menuknop { display: block; cursor: pointer; padding: 8px 0; }
  .menuknop span { display: block; width: 26px; height: 2px; background: #000; margin: 6px 0; }

  .kop .menu { display: none; width: 100%; order: 3; }
  .menuknop-check:checked ~ .menu { display: block; }
  .kop .menu ul { flex-direction: column; gap: 0; padding: 10px 0 0; }
  .kop .menu li { text-align: center; border-bottom: 1px solid #eee; }
  .kop .menu li:first-child { border-top: 1px solid #eee; }
  .kop .menu a { display: block; padding: 13px 0; font-size: 14px; }
  .kop .menu a:hover { border-bottom: none; }
  .kop .menu li.current a { border-bottom: none; font-weight: 600; }
  .kop .menu li.portaal a { border: none; border-radius: 0; padding: 13px 0; line-height: inherit; }

  .grid { columns: 2 150px; }

  /* filterpills: compacter, gecentreerd gewrapt — alles zichtbaar */
  .filter { margin-bottom: 12px; }
  .filter a { font-size: 10px; padding: 1px 10px; line-height: 22px; margin: 1px; }

  /* lopende tekst links en rechts uitlijnen */
  .tekstblok p, .kolom-info p, .grid a.introtegel p, .categorie-intro p {
    text-align: justify;
    hyphens: auto;
  }
}
