/* Algemene body stijl */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* Dark / Light mode kleuren */
body.light {
  background-color: #f4f4f4;
  color: #000;
}
body.dark {
  background-color: #121212;
  color: #fff;
}

/* Header en Footer */
.site-header, .site-footer {
  background-color: orange;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.site-header img, .site-footer img {
  height: 40px;
}

.site-footer img {
  height: 31px;
}

/* Theme toggle button */
#themeToggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main container met responsive achtergrond */
.main-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* Achtergrond afbeelding + overlay */
  background: 
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url("../beeld/educartoon-tr2bgrd.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  min-height: 80vh;
  box-sizing: border-box;
}

/* Voor mobiele apparaten: achtergrond niet fixed */
@media (max-width: 768px) {
  .main-container {
    background-attachment: scroll;
    padding: 1rem;
  }
}


/* Button boven de kaarten */
.cards-controls {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cards-controls button {
  background-color: orange;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cards-controls button:hover {
  background-color: darkorange;
}

/* Kaarten */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, background 0.3s;
}

body.dark .card {
  background: #1e1e1e;
}

.card:hover {
  transform: scale(1.03);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #eee;
  cursor: pointer;
}

body.dark .card-header {
  background: #2c2c2c;
}

.card-header img {
  height: 50px;
  margin-right: 10px;
  width: auto;     /*   aangepast */
  object-fit: contain;      /* aangepast */
}

      /*
                    =============Grootte van de logo’s instellen=========

                .card-header img { 
                  width: 80px;   /* gewenste breedte */
                  height: auto;  /* hoogte automatisch aanpassen */
                  object-fit: contain; /* afbeelding netjes binnen de box */
                  margin-right: 10px;  /* wat ruimte naast het logo */
       /*         }
                    =========Wil je dat alle logo’s dezelfde hoogte hebben, dan kan je dit gebruiken:==========

                .card-header img {
                  height: 60px;
                  width: auto;
                  object-fit: contain;
                }

        */

.card-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

/* Accordion content */
.accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1rem;
}

.accordion p {
  margin: 0.5rem 0;
}

.accordion a {
  display: inline-block;
  margin-top: 0.5rem;
  color: orange;
  text-decoration: none;
  font-weight: bold;
}

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

.form-table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto; /* centreer de tabel */
  border-collapse: collapse;
 /*  background-color:    #f9f9f9; */
  border: 4px double orange;
}

.form-table th {
     text-shadow: 2px 2px 5px orange;
  text-align: center;
 /* background-color:  #eee;  */
  padding: 10px;
}

.form-table td {
     text-shadow: 2px 2px 5px yellow;
     font-size: 1.05em;
  padding: 8px;
  border-top: 1px solid #ccc;
  vertical-align: middle;
}

.form-table input[type="text"],
.form-table textarea {
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
}

.form-table input[type="submit"] {
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
}
