﻿/* === Base Styles === */
body {
  font-family: 'Work Sans', Arial, sans-serif;
  color: #111;
  margin: 0;
  padding: 0;
  background-color: #fff;
  line-height: 1.4;
  font-size: 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* === Navigation === */
nav {
  margin-bottom: 1rem;
}

.btn {
  background: #e9eef3;
  border: 1px solid #ccd5df;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: #004c99;
  margin-right: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #dce5ef;
  color: #002f5e;
}

/* === Header === */
header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header img {
  width: 100px;
  height: auto;
  margin-top: 0.5rem;
}

h1 {
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: #004c99;
}

h2, h3 {
  color: #004c99;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* === Links === */
a {
  color: #004c99;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #002f5e;
  text-decoration: underline;
  text-decoration-color: #002f5e;
}

/* === Quotes === */
.quote {
  font-style: italic;
  color: #333;
  max-width: 500px;
  text-align: left;
  padding-left: 0.5rem;
}

.quote .author {
  font-style: normal;
}

.quote .source {
  font-style: italic;
}

/* === Rubrieken (Buttons) === */
.rubrieken {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.rubrieken a {
  display: inline-block;
  background-color: #e9eef3;
  color: #004c99;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rubrieken a:hover {
  background-color: #dce5ef;
  color: #002f5e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* === Sermon Table === */
.sermon-list {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: #111;
}

.sermon-list h1 {
  text-align: center;
  color: #004c99;
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}

.sermon-list table {
  width: 100%;
  border-collapse: collapse;
}

.sermon-list th {
  text-align: left;
  font-weight: bold;
  color: #004c99;
  border-bottom: 2px solid #ccd5df;
  padding-bottom: 0.3rem;
}

.sermon-list td {
  vertical-align: top;
  padding: 0.2rem 0;
  border-bottom: 1px solid #ddd;
}

.sermon-list td:first-child {
  width: 34%;
  font-style: italic;
  color: #222;
}

.sermon-list a {
  color: #004c99;
}

.sermon-list a:hover {
  text-decoration: underline;
}

/* === Two-Column Layout === */
article.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.95rem;
}

.twocol .col {
  display: grid;
}

article section {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

/* === Lists === */
ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0.3rem 0;
}

li {
  margin: 0.2rem 0;
  padding-left: 0.3rem;
}

/* === Footer === */
footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #444;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 0.8rem;
  }
  body {
    font-size: 0.93rem;
  }
  article.twocol {
    grid-template-columns: 1fr;
  }
  .rubrieken a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .sermon-list th { display: none; }
  .sermon-list tr {
    display: block;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0.8em;
    padding-bottom: 0.4em;
  }
  .sermon-list td {
    display: block;
    padding: 0.2em 0;
    border: none;
  }
  .sermon-list td:first-child {
    font-weight: bold;
    font-style: normal;
    color: #004c99;
  }
}
