/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Varela Round", Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #777;
  background: #f3f3f3;
  line-height: 25.2px;
}

/* Content card */
.site-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
}

/* Top bar */
.top-bar {
  text-align: center;
  font-size: 12px;
  color: #999;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 20px 20px 10px;
  border-bottom: 1px solid #ccc;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #ccc;
}

.site-logo {
  display: block;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 49px;
  width: auto;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #111;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.site-nav a:hover {
  border-bottom-color: #111;
}

.site-nav a.active {
  border-bottom-color: #111;
}

/* Main content */
main {
  padding: 20px 80px 40px;
}

main h1 {
  font-size: 22px;
  font-weight: 400;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

main h2 {
  font-size: 18px;
  font-weight: 400;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 28px;
  margin-bottom: 14px;
}

main h3 {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 20px;
  margin-bottom: 10px;
}

main p {
  margin-bottom: 14px;
  color: #777;
}

main ul,
main ol {
  margin-bottom: 14px;
  padding-left: 20px;
  color: #777;
}

main li {
  margin-bottom: 6px;
}

main a {
  color: #111;
  text-decoration: underline;
}

main a:hover {
  color: #555;
}

/* Homepage centered content */
.home-content {
  text-align: center;
}

.home-content ul {
  list-style: none;
  padding-left: 0;
}

.home-content li {
  margin-bottom: 4px;
}

/* Figures / images */
figure {
  margin: 0 0 20px;
}

/* Full-width hero figure (first image on a page) */
main > figure:first-child,
main > .home-content > figure:first-child {
  margin-left: -80px;
  margin-right: -80px;
  margin-top: -20px;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

figcaption {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* Tables (Sprechzeiten) */
table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto 20px;
  width: auto;
}

/* Hide table header */
thead {
  display: none;
}

th,
td {
  text-align: left;
  padding: 8px 16px;
  border: none;
  font-size: 14px;
  color: #777;
  vertical-align: top;
}

/* Day name column - bold */
td:first-child {
  font-weight: 700;
  color: #777;
  padding-right: 24px;
}

/* Alternating row backgrounds */
tr:nth-child(odd) td {
  background: #d3d3d3;
}

tr:nth-child(even) td {
  background: transparent;
}

/* HR */
hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 14px 0;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  border-top: 1px solid #ccc;
}

.footer-nav {
  display: inline;
}

.footer-nav a {
  color: #111;
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

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

.footer-sep {
  color: #111;
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
  }

  .site-nav {
    gap: 12px;
  }

  main {
    padding: 20px 15px 30px;
  }

  table {
    min-width: 100%;
    font-size: 12px;
  }

  th,
  td {
    padding: 4px 8px;
  }

  main > figure:first-child,
  main > .home-content > figure:first-child {
    margin-left: -15px;
    margin-right: -15px;
    margin-top: -20px;
  }

  .footer-nav a {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .footer-sep {
    font-size: 13px;
    letter-spacing: 2px;
  }
}
