/* Algemene instellingen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

a:focus {
  outline: 0.1rem solid #0066cc;
  outline-offset: 0.1rem;
}

a:focus-visible {
  outline: 0.2rem solid #ffcc00;
  outline-offset: 0.2rem;
}

ul {
  margin-left: 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -100rem;
  top: auto;
  width: 0.1rem;
  height: 0.1rem;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.5rem;
  background: #0066cc;
  color: #fff;
  z-index: 1000;
}

/* Container */
#container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
#banner {
  text-align: center;
  margin-bottom: 1rem;
}

#banner h2 {
  margin: 0.3rem 0;
}

#banner h2 a {
  color: #003366;
  text-decoration: none;
}

#banner h2 a:hover {
  text-decoration: underline;
}

#banner img {
  max-width: 100%;
  height: auto;
  border-radius: 0.3rem;
}

/* Layout met flexbox */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Sidebar */
#sidebar {
  flex: 1 1 16rem;
  background-color: #d0d9e8;
  padding: 1rem;
  border-radius: 0.3rem;
}

#sidebar nav {
  margin-bottom: 1.5rem;
}

#sidebar nav ul {
  list-style-type: none;
  padding-left: 0;
}

#sidebar nav ul li {
  margin: 0.3rem 0;
}

#sidebar nav ul li a {
  display: block;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border-radius: 0.3rem;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s;
}

#sidebar nav ul li a:hover {
  background-color: #dceeff;
  color: #001a33;
  text-decoration: none;
}

#sidebar em {
  display: block;
  text-align: center;
  margin: 1.5rem auto 1rem auto;
  font-style: normal;
  font-weight: bold;
  color: #003366;
  background-color: #e6f0fa;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  width: fit-content;
}

#sidebar img {
  display: block;
  margin: 1rem auto 0 auto;
  max-width: 100%;
  height: auto;
}

/* Main content */
#content {
  margin-top: 0;
  flex: 3 1 38rem;
}

#content h2 {
  color: #003366;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#content h3 {
  color: #003366;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#content code {
  background-color: #eee;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.text-block a {
  padding-left: 1rem;
  color: #003366;
  text-decoration: underline;
}

.text-block a:hover {
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: #1976d2; 
  color: #ffffff;
  text-decoration: none;
}

.news-block a {
  display: block;
  padding-left: 1rem;
  color: #003366;
  text-decoration: none;
  border-bottom: 0.1rem dashed #ccc;
}

.news-block a:hover {
  padding-left: 1rem;
  background-color: #1976d2; 
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
  border-radius: 0.2rem;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.image-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  color: #333;
}

.image-row img {
  border-radius: 0.3rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: auto;
}

.image-row img:hover {
  transform: scale(1.03);
}

/* Contactinfo */
.contact-info {
  margin-bottom: 1.3rem;
}

.iban {
  font-size: 1.4em;
  font-weight: bold;
}

.anbi-logo {
  width: 5.6rem;
  height: 4.5rem;
  float: right;
  margin-left: 0.9rem;
}

/* Downloadknop */
.click-button {
  display: inline-block;
  padding: 1rem;
  background-color: #0066cc;
  color: white;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.click-button:hover {
  background-color: #004999;
}

.click-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Verborgen echte file input */
#photo {
  display: none;
}

/* Label dat eruitziet als een knop */
.photo-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.additional-display {
  font-size: 0.9rem;
  color: #333;
}

/* Foto-preview */
.photo-preview.rounded {
  max-width: 400px; /* Max breedte */
  max-height: 400px; /* Max hoogte */
  width: auto; /* Houd de verhoudingen van de afbeelding intact */
  height: auto; /* Houd de verhoudingen van de afbeelding intact */
  border-radius: 0.3rem;
  box-shadow: 0 0 0.6rem rgba(0, 0, 0, 0.1);
  padding: 0.3rem;
  display: none;
  margin-top: 1rem;
}

#preview {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  text-align: left;
  padding: 0.3rem;
  border-bottom: 0.1rem solid #ccc;
}

thead {
  background-color: #f0f0f0;
}

/* Financiele tabel */
.financial-table {
  width: 60%;
  margin: 1.3rem 0;
  border-collapse: collapse;
  font-family: 'Arial', sans-serif;
  border: 0.1rem solid #80C78B;
}

.financial-table th,
.financial-table td {
  padding: 0.5rem;
  text-align: left;
  border: 0.1rem solid #ddd;
}

.financial-table th {
  background-color: #8CC68D;
  color: white;
  font-weight: bold;
}

.financial-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.financial-table td {
  font-size: 1rem;
}

.financial-table td strong {
  font-weight: bold;
}

.financial-table th[colspan="2"] {
  text-align: center;
  background-color: #78B17A;
}

.financial-table tr:last-child td {
  border-bottom: none;
}

/* Invulformulier */
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 1rem;
  border: 0.1rem solid #ccc;
  border-radius: 0.2rem;
  box-sizing: border-box;
  background-color: #fff;
}

input[type="file"] {
  display: none;
}

input:required,
select:required,
textarea:required {
  background-color: #fffacd; /* lichtgeel */
}

label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 0.1rem solid #ddd;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

.footer a {
  color: #0066cc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsiviteit voor mobiele schermen */
@media (max-width: 48rem) {
  .layout {
    flex-direction: column;
  }

  #sidebar, #content {
    flex: 1 1 100%;
  }

  /* Verberg foto in de sidebar op mobiele schermen */
  #sidebar img {
    display: none;
  }

  /* Zorg ervoor dat knoppen en invoervelden goed zichtbaar zijn */
  .form-column {
    width: 100%;
  }
}

/* Media queries voor PDF-weergave */
@media print {
  .click-button,
  .skip-link,
  .footer,
  #loadInput {
    display: none !important;
  }

  #container {
    width: 100%;
    margin: 0;
    padding: 1rem;
  }

  header h2, header h2 * {
    visibility: visible;
  }

  /* Header-afbeelding verbergen */
  header img {
    display: none !important;
  }

  body {
    font-size: 1rem;
    color: black;
    background: white;
  }

  input,
  select,
  textarea {
    border: none !important;
    box-shadow: none !important;
	background: none !important;
  }

  label {
    display: inline-block;
    margin-top: 0.5rem;
	font-weight: normal;
  }

  table {
    width: 100%;
    margin-top: 1rem;
    border: 0.1rem solid #ddd;
  }

  .click-button {
    display: none; /* Verberg de knoppen */
  }
}

