/* Modernized CSS for responsive, accessible design */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #212529;
  background-color: #f8f9fa;
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  text-decoration: underline;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  text-decoration: underline;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

img {
  margin: 0.5rem 0;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Layout using flexbox */
.main-layout {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.menu {
  min-width: 200px;
  background: linear-gradient(135deg, #228B22 80%, #4CAF50 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,139,34,0.1);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.menu a:hover, .menu a:focus {
  background: #4CAF50;
  color: #fff;
  outline: 2px solid #fff;
}
.menu .active {
  background: #fff;
  color: #228B22;
}

.content {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2rem;
  min-width: 0;
}

footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  background: #228B22;
  color: #fff;
  margin-top: 2rem;
  border-radius: 0 0 12px 12px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }
  .menu {
    flex-direction: row;
    min-width: unset;
    justify-content: center;
    border-radius: 8px;
    padding: 0.5rem;
  }
  .menu a {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
  }
}
@media (max-width: 600px) {
  .main-layout {
    padding: 0.5rem;
  }
  .content {
    padding: 1rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
  }
}

/* Accessibility: focus states */
a:focus {
  outline: 2px solid #228B22;
  outline-offset: 2px;
}

/* Remove legacy layout styles */
/* #main, #header, #menu, #content, #eventsMenu, etc. are replaced by .main-layout, .menu, .content */

/* Special styles for specific elements */
.guestbook {
  background-color: #fff3cd;
  border-left: 5px solid #ffeeba;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
}
.kerkDienst {
  background-color: #d1e7dd;
  border-left: 5px solid #badbcc;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
}
.eventsMenu {
  background-color: #cfe2ff;
  border-left: 5px solid #a6c8ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
}
