body {
  margin: 0;
  background: var(--color-primary);
  color: var(--color-quintary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-menu-open {
  overflow-y: hidden;
}

p {
  margin: 1em 0;
  line-height: 25px;
}

a {
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
}

header .upper-nav {
  height: 100px;
  position: relative;
  overflow: visible;
  z-index: 20;
}

.full-width {
  width: 100%;
}

.lower-nav-links a {
  margin: 0 .75em 1em .75em;
  text-decoration: none;
  font-size: 12px;
}

.lower-nav-links a.active,
.lower-nav-menu a.active {
  font-weight: bold;
}

.dual {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.dual .child {
  flex: 1;
}

.background-image {
  background-size: cover;
  background-position: center;
  height: 50vh;
  width: 100%;
}

.landing {
  height: 30vh;
}

.background-image-landing {
  background-image: url("/static/img/landing.jpg");
}

.background-image-mission {
  background-image: url("/static/img/mission.jpg");
}

.background-image-vision {
  background-image: url("/static/img/vision.jpg");
}

nav {
  background-color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .header-item {
  height: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .header-item a {
  height: 100%;
  margin-right: 1vw;
}

nav .header-item a img {
  height: inherit;
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(99deg) brightness(100%) contrast(104%);
}

nav .header-item .language-select {
  position: relative;
}

nav .header-item .language-select .language-link {
  font-size: 12px;
  padding: 0 1em;
  text-decoration: none;
}

.lower-nav {
  position: relative;
  min-height: 52px;
}

.lower-nav .lower-nav-content {
  width: 100%;
  padding: 0 .75em;
  justify-content: flex-start;
  gap: .75em;
}

.lower-nav .lower-nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.lower-nav .lower-nav-links .nav-link {
  flex: 0 0 auto;
}

.lower-nav .lower-nav-links .nav-link.is-overflowed {
  display: none;
}

.lower-nav .lower-nav-menu-button {
  display: none;
  height: 36px;
  width: 36px;
  padding: 0;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-quintary);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.lower-nav .lower-nav-menu-button.visible {
  display: inline-flex;
}

.lower-nav .lower-nav-menu-button span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.lower-nav .lower-nav-menu {
  display: none;
  position: absolute;
  right: .75em;
  top: calc(100% - .5em);
  z-index: 10;
  min-width: 220px;
  flex-direction: column;
  border: 1px solid rgba(245, 243, 245, 0.3);
}

.lower-nav .lower-nav-menu.open {
  display: flex;
}

.lower-nav .lower-nav-menu a {
  margin: 0;
  padding: .85em 1em;
  height: auto;
  margin-right: 0;
  text-decoration: none;
  color: var(--color-quintary);
  border-bottom: 1px solid rgba(245, 243, 245, 0.2);
}

.lower-nav .lower-nav-menu a:last-child {
  border-bottom: 0;
}

.link {
  border-bottom: solid 1px white;
}

nav .header-item .language-select-content {
  position: absolute;
  display: none;
  top: 100%;
  right: 0;
  min-width: 72px;
  padding: .2em 0;
  z-index: 50;
  border: 1px solid rgba(245, 243, 245, 0.3);
}

nav .header-item .language-select:hover .language-select-content,
nav .header-item .language-select:focus-within .language-select-content,
nav .header-item .language-select.active .language-select-content {
  display: flex;
  flex-direction: column;
}

.title {
  margin-right: 1em;
}

h1 {
  font-weight: 200;
}

section.news {
  padding: 1em;
}

section.events {
  padding: 1em;
}

.accented {
  font-size: 25px;
  text-align: left;
  width: 10em;
  border-bottom: solid 1px white;
  padding: 1em;
}

.accented-black {
  font-size: 25px;
  text-align: left;
  width: 10em;
  border-bottom: solid 1px black;
  padding: 1em;
}

.aside {
  padding: 3em;
  margin-left: 3em;
  border-left: solid 1px var(--color-primary);
}

.imprint-table {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75em;
  row-gap: 0.75em;
  align-items: baseline;
  margin: 1em 0;
}

.imprint-table dt {
  white-space: nowrap;
}

.imprint-table dt::after {
  content: ":";
}

.imprint-table dd {
  margin: 0;
}

.imprint-table .imprint-row-full {
  grid-column: 1 / -1;
}

section {
  padding: 0 2em 0 2em;
}

section.members .members-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 2em;
}

section.members .members-container .member {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2em 0 0 0;
}

section.members .members-container .member .img-container {
  border-radius: 100%;
  overflow: hidden;
  margin-bottom: 1em;
}

section.signup {
  padding: 1em;
}

section.partners {
  padding: 2em 0;
}

section.partners .partners-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

section.partners .partners-container .img-container {
  flex: 1;
  padding: 1em;
}

section.partners .partners-container .img-container img {
  width: 100%;
  object-fit: contain;
}

section.banner {
  height: 30vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

footer {
  padding-top: 1em;
  margin-top: auto;
  width: 100%;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .footer-row a {
  text-decoration: none;
  color: var(--color-quintary);
  position: relative;
  right: 20px;
}

.footer-row .flag-container {
  margin-right: 8px;
}

.flag-container {
  height: 16px;
}

.flag-container img {
  max-height: 100%;
}

@media only screen and (max-width: 1000px) {
  .mobile-no-show {
    display: none !important;
  }

  .mobile-flex-column {
    flex-direction: column;
  }
}

@media only screen and (min-width: 600px) {
  section.members .members-container {
    max-width: 1000px;
    width: 100%;
    flex-direction: row;
    justify-content: space-evenly;
  }

  .lower-nav-links a,
  .lower-nav .lower-nav-menu a {
    font-size: 15px;
  }

  nav .header-item .language-select .language-link {
    font-size: 15px;
  }
}

.form-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2em 1.5em;
}

.form-container .form-title {
  font-weight: 300;
  margin-bottom: 1.5em;
  color: var(--color-primary);
}

.form-container .row {
  margin-left: 0;
  margin-right: 0;
}

/* The form sits on a white container but inherits the page's near-white text
   color, so without this the typed text (incl. the selected date) is white on
   white. Force the readable theme color on all form fields. */
.form-container .input-field input,
.form-container .input-field input.datepicker,
.form-container .input-field textarea {
  color: var(--color-primary);
}

.form-banner {
  margin-bottom: 1.5em;
  padding: 0.9em 1.1em;
  border-radius: 4px;
  border-left: 4px solid transparent;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-banner-success {
  background-color: #e6f4ea;
  border-left-color: #2e7d32;
  color: #1b5e20;
}

.form-banner-error {
  background-color: #fdecea;
  border-left-color: #c62828;
  color: #b71c1c;
}

.field-error {
  display: block;
  margin-top: 0.25em;
  color: #c62828;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Materialize datepicker themed to match the site palette. The modal is
   appended to <body>, which sets a near-white text color; without these
   overrides the day numbers render white-on-white and are unreadable. */
.datepicker-modal {
  color: var(--color-primary);
}

.datepicker-date-display {
  background-color: var(--color-tertiary);
}

.datepicker-table th {
  color: rgba(9, 13, 28, 0.55);
}

.datepicker-day-button {
  color: var(--color-primary);
}

.datepicker-day-button:focus {
  background-color: rgba(21, 33, 67, 0.12);
}

.datepicker-table td.is-today .datepicker-day-button {
  color: var(--color-tertiary);
  font-weight: 600;
}

.datepicker-table td.is-selected {
  background-color: var(--color-tertiary);
}

.datepicker-table td.is-selected .datepicker-day-button {
  color: #fff;
}

.month-prev,
.month-next {
  color: var(--color-primary);
}

.datepicker-controls .select-wrapper input.select-dropdown {
  color: var(--color-primary);
}

.datepicker-footer .datepicker-cancel,
.datepicker-footer .datepicker-clear,
.datepicker-footer .datepicker-done {
  color: var(--color-tertiary);
}

@media only screen and (min-width: 1000px) {
  .max-width-50 {
    max-width: 700px;
  }

  .max-width-75 {
    max-width: 1000px;
  }

  .gap-10 {
    gap: 20px;
  }

  .lower-nav-links a,
  .lower-nav .lower-nav-menu a {
    font-size: 20px;
  }

  nav .header-item .language-select .language-link {
    font-size: 20px;
  }
}