/* Basis reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Arial, sans-serif;
  background-color: #fdfdfd;
  color: #111;
  line-height: 1.5;
  min-height: 100vh;
}

/* Container voor consistente layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header, #header {
  background: #222;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

/* Navigation links in header */
header .container, #header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #ccc;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  color: white;
}

/* Layout met sidebar */
.layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  gap: 20px;
  min-height: 80vh; /* Zorgt dat de inhoud niet te klein is */
}

/* Sidebar */
#sidebar {
  flex: 0 0 200px; /* vaste breedte sidebar */
  background-color: #222;
  color: #eee;
  padding: 15px;
  border-radius: 5px;
}

/* Sidebar navigatie */
#sidebar aside.sidebar nav ul {
  list-style: none;
}

#sidebar aside.sidebar nav ul li {
  margin-bottom: 10px;
}

#sidebar aside.sidebar nav ul li a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

#sidebar aside.sidebar nav ul li a:hover,
#sidebar aside.sidebar nav ul li a:focus {
  background-color: #555;
  color: #fff;
}

/* Main content */
main {
  flex: 1; /* neemt resterende ruimte */
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

/* Footer */
footer, #footer {
  background-color: #eee;
  color: #333;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  border-radius: 5px;
  margin: 1rem auto 0 auto;
  max-width: 1200px;
}

/* Responsive: mobiel */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 0.5rem;
  }

  #sidebar {
    flex: none;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 5px;
    padding: 10px;
  }

  main {
    padding: 10px;
    border-radius: 5px;
    box-shadow: none;
  }
}
