html, body { overflow-x: clip; }

/* define site colors */
:root {
    --link-color:rgba(0, 0, 0, 0.75);
}
/* remove default padding and margin */
*{
  margin:0;
  padding: 0;
}

/* Gebruik overal border-box (100% = 100%) */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body {
  line-height: 1.3;
  font-family: "Karla", Icons;
}
body {
  min-height: 100vh;
}

/* Header contains the sidename on the left and open and close buttons on the left ABOVE all other content */
header {
  padding: 3rem 0 0 3rem;
}
header ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}
header ul .openmenu, header ul .closemenu {
  display: none;
  margin-right: 2em;
}
li a {
  color: var(--link-color);
  text-decoration: none;
  }
li a:hover {
  text-decoration: underline;
}

/* actually: menu AND content, without the header */
.menu-and-content {
  display: grid;
  grid-template-columns: auto 1fr;
}

/* Navigation */
nav {
  background-color: white; /* to display over content we need a background-color */
  box-sizing: border-box; /* including padding and border within the specified width and height for easy calculations */
  min-height: 100vh;
  width:250px;
  font-weight: 400;
  font-size: 1.1rem;
  font-style: normal;
  padding: 3rem 0 3rem 3rem;
}
nav ul, nav ul.sitepages, nav ul.social-media {
  width: 100%;
  list-style: none;
  margin-bottom: 1em;
}
nav li {
  height: 24px;
}
nav li a {
  color: var(--link-color);
  text-decoration: none;
  font-style: italic;
}
nav li a:hover {
  text-decoration: underline;
}
nav li a.active {
  text-decoration: underline;
}

/* projectnaam */
nav li.project a {
  font-style: normal;
  font-weight: 800;
}

/* sitepages */
nav ul.sitepages li a {
  font-style: normal;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
}

/* Social Media */
nav ul.social-media {
  margin-top:10em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
nav ul.social-media li {
  padding: 0 1em 0 0;
}
nav ul.social-media a svg {
  fill: black;
}

nav ul.social-media a:hover svg {
  fill: gray;
}

/* Bersee CC */
.bersee-network {
  margin-top:10em;
  font-family: "Roboto Mono", monospace;
  color: rgba(119, 119, 119, 0.75);
  font-size:0.7rem;
}
.bersee-network a {
  color: rgba(119, 119, 119, 0.75);
}
nav ul.bersee-cc a svg {
  fill: black;
}

nav ul.bersee-cc a:hover svg {
  fill: gray;
}

nav ul.bersee-cc {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
nav ul.bersee-cc li {
  padding: 0 1em 0 0;
}

/* Language switch */
.language-switch a {
  display: inline-block;
  padding: 0.5em 0.75em;
  margin: 0 0.25em;
  text-decoration: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.language-switch a:first-child {
  margin: 0 0.25em 0 0;
}
.language-switch a:hover,
.language-switch a.active {
  background: rgba(0, 0, 0, 0.05);
  color: black;
}


/* Main content */
main {
  min-height: 100vh;
  padding: 2.5rem 0 5rem 5rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.85);
  font-size:1.2rem;
}

main .article ul {
  list-style-position: inside;
 }

.article {
  max-width: 75ch;
}
.logo-container {
  width: 100%;
  max-width: 960px;
  margin:0;
}

.responsive-logo {
  width: 100%
}

h1, h2, h3, h4, h5, h6 {
  color: rgba(0, 0, 0, 0.85);
  letter-spacing: 2px;
}
p {
  margin: 1em 0;
}
aside {
  font-family: "Roboto Mono", monospace;
  color: rgba(119, 119, 119, 0.75);
  font-size:0.9rem;
  max-width: 65ch;
}

.media-block {
  display: flex;
  flex-wrap: wrap;         /* mobielvriendelijk */
  gap: 1.5rem;
  align-items: flex-start; /* tekst en foto netjes uitgelijnd */
  margin: 2rem 0;
}

.media-block img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.media-block .text {
  flex: 1;
  min-width: 200px;
}

.warning-box {
  background-color: #c62828; /* rood, maar iets rustiger dan puur #f00 */
  color: #fff;
  padding: 1em;
  border-radius: 8px; /* zelfde als foto's */
  font-weight: 500;
  margin: 5em 0;
  line-height: 1.4;
  max-width: 75ch;
}

.img-left {
  float: left;
  margin-right: 1.5em;
  max-width: 250px;
  height: auto;
}

blockquote {
  background-color: #f8f8f8;
  padding: 2em;
  text-align: center;
  margin: 2em;
  border-radius: 8px;
}

.masonry {
  column-count: 3;          /* aantal kolommen */
  column-gap: 1rem;         /* ruimte tussen kolommen */
  max-width: 1200px;
  margin: 2em 2em 2em 0;
}

.masonry img {
  width: 100%;
  margin-bottom: 1rem;
  display: block;
  border-radius: 8px;
  break-inside: avoid;      /* voorkomt dat plaatjes worden gebroken */
}

/* Projecten Nu.nl style */

.projecten-lijst { margin-block: 1.5rem 2rem; }
.projecten-lijst h2 { margin: 0 0 .75rem; }

.proj-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;                 /* ruimte tussen items */
}

.proj-item { margin: 0; }

.proj-link {
  display: grid;
  grid-template-columns: 112px 1fr;   /* thumb links, tekst rechts */
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  padding: .6rem .75rem;
  border-radius: 12px;
  background: #f7f7f7;                /* pas aan naar jouw palette */
  transition: background .15s ease, transform .15s ease;
}

.proj-link:hover,
.proj-link:focus-visible {
  background: #efefef;
  transform: translateY(-1px);
}

.proj-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;         /* consistente thumbs */
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.proj-text { min-width: 0; }   /* laat afkappen toe bij lange titels */

.proj-title {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* max 2 regels op kleine schermen */
  -webkit-box-orient: vertical;
}

.proj-meta {
  font-size: .9rem;
  color: rgba(0,0,0,.65);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}

/* puntje/separator mag mee dimmen */
.proj-meta time,
.proj-meta .proj-count,
.proj-meta [aria-hidden="true"] {
  color: inherit;
}

/* iets ruimer op grotere schermen */
@media (min-width: 720px) {
  .proj-link {
    grid-template-columns: 160px 1fr;
    padding: .8rem 1rem;
  }
  .proj-title { font-size: 1.05rem; }
}

/* Detailvariant: titel boven uitlijnen + tekstblok onder de titel */
.proj-item--detail .proj-link { align-items: start; }

.proj-item--detail .proj-text {
  display: flex;
  flex-direction: column;
  gap: .45rem;             /* ruimte tussen titel en tekst */
}

.proj-item--detail .proj-title {
  margin: 0;               /* strak tegen de tekst */
}

.proj-item--detail .proj-meta {
  display: block;          /* i.p.v. inline-flex uit de lijstvariant */
  white-space: normal;     /* tekst mag afbreken op meerdere regels */
  opacity: 1;              /* geen overlay-issues */
  color: rgba(0,0,0,.85);  /* subtiel gedimd kan ook */
  font-size: 1rem;
  line-height: 1.45;
}

.proj-item--detail .proj-meta p { margin: 0; }
.proj-item--detail .proj-meta p + p { margin-top: .6rem; }  /* 2e alinea */

.proj-link--static { cursor: default; }
.proj-link--static:hover { background: #f7f7f7; transform: none; } /* geen hover-animatie */

/* Einde Projectenlijst */


/* Media queries */
@media(min-width: 960px) {
  .projecten-lijst {
    max-width: 960px;
  }
}

@media (max-width:1200px) {
  .masonry {
    column-count: 2;
  }
  .project-grid {
    max-width: 100%;
  }
  main {
    padding: 1em;
  }
}
@media(max-width:800px) {
  h1 {
    font-size: 1.5em;
  }
  header {
      padding: 2em 0 0 1em;
  }
  nav {
    display: none;
  }
  header ul .openmenu {
    display: inline;
  }
  main {
    padding: 1em;
  }
  .masonry {
    margin: 2em auto;
  }
  .media-block {
    flex-direction: column;
  }
}
/* Position absolute: menu displays over content */
@media(max-width:500px) {
  h1 {
    font-size: 1.1em;
  }
  nav {
    position: absolute;
    left:0;
    width: 100%;
  }
  main {
    padding: 1em;
  }
  .masonry {
    column-count: 1;
  }
  /* Voorkom dat er op kleine schermen slechts een paar letters naast de afbeelding staan */
  .img-left {
    float:none;
  /* Project 1 koloms op kleine schermen */
  }
  .proj-item--detail .proj-link {
    grid-template-columns: 1fr;   /* één kolom i.p.v. 2 */
    align-items: start;           /* titel boven uitlijnen */
    gap: .6rem;                   /* iets compacter tussen foto en tekst */
  }

  .proj-item--detail .proj-thumb {
    width: 100%;
    aspect-ratio: 4/3;
  }

  .proj-item--detail .proj-text {
    margin-top: .2rem;            /* klein beetje ruimte onder de foto */
    min-width: 0;                 /* zeker weten dat lange titels afkappen */
  }

  .proj-item--detail .proj-title {
    -webkit-line-clamp: unset;    /* titel mag op mobiel gerust doorlopen */
  }
}
