*,
*::before,
*::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

:where(html) {
  box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-weight: normal;
  line-height: 1.5;
}

:where(ul) {
  list-style: none;
}

:where(img, video) {
  height: auto;
  max-width: 100%;
}

:where(iframe) {
  border: 0;
}

:where(table) {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;

  background-color: #fff;
  color: #252525;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo a {
  font-size: 1.9rem;
  font-weight: bold;
  color: rgb(31, 63, 44) !important;
}

.flex {
  display: flex;
  align-items: center;
}

.green {
  color: rgb(31, 63, 44);
}

.top-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  background: rgb(31, 63, 44);
  color: #fff;
}

.program-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgb(236, 235, 228);
}

.program-row img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.menu-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background: #fff;
  gap: 1rem;
}

.menu-row a {
  text-decoration: none;
  color: #252525;
  display: block;
}

.menu-row nav.open {
  transform: translateX(0);
}

.menu-row nav ul {
  display: flex;
  gap: 1rem;
  font-size: 1.1rem;
}

.menu-row form.search input[type="text"] {
  padding: 0.5rem;
  border: 1px solid rgb(31, 63, 44);
  border-radius: 5px;
  max-width: 100px;
  line-height: 22px;
  outline: none;
}

.menu-row a.search {
  display: flex;
  align-items: center;
  max-width: 38px;
  max-height: 38px;
  border-radius: 5px;
  border: 1px solid rgb(31, 63, 44);
}

.menu-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.menu-row .language-selector ul {
  display: flex;
  border-radius: 5px;
  border: 1px solid rgb(31, 63, 44);
  overflow: hidden;
  gap: 1px;
  background: rgb(31, 63, 44);
}

.menu-row .language-selector li {
  background: #fff;
}

.menu-row .language-selector li a {
  padding: 0.5rem 0.75rem;
}

.menu-row .language-selector li.selected {
  background: rgb(31, 63, 44);
  color: #fff;
}

.menu-row .language-selector li.selected a {
  color: #fff;
}

.menu-row button {
  background: rgb(31, 63, 44);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

nav.breadcrumbs {
  margin: 0 0 1rem 0;
}

nav.breadcrumbs ul {
  display: flex;
  font-size: 0.9rem;
  list-style: none;
  padding: 0;
}

nav.breadcrumbs a {
  color: rgb(31, 63, 44);
  text-decoration: none;
}

nav.breadcrumbs ul li:not(:last-child)::after {
  display: inline-block;
  margin: 0 0.5rem;
  content: "›";
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin: 1rem 0;
  border-left: 3px solid rgb(31, 63, 44);
  padding: 0 0 0 0.5rem;
}

article p {
  line-height: 1.8rem;
  margin-bottom: 1rem;
}

article a {
  color: rgb(0, 65, 19);
}

article ul {
  list-style: disc;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

article ol {
  padding-left: 1rem;
  margin-bottom: 1rem;
}

article table {
  border: 1px solid rgb(31, 63, 44);
  margin-bottom: 1rem;
  border-collapse: collapse;
}

article table th,
article table td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid rgb(31, 63, 44);
}

article .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

article .gallery img {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  border: 1px solid rgb(31, 63, 44);
}

.video-container {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
  margin: 1rem 0;
}

.video-container iframe,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.video-wrap {
  width: 100%;
  max-width: 600px;
}

.tx-events .tx-events-list .event-date {
  margin-bottom: 0.6rem;
}

.tx-events .tx-events-list .tx-events-list-item {
  margin-bottom: 3rem;
}

.tx-events ul.typo3-messages {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.tx-events .typo3-messages h4 {
  border: none;
  padding: 0;
}
.tx-events .typo3-messages li.alert {
  margin-bottom: 1rem;
}

.tx-events .typo3-messages li.alert p {
  margin: 0;
}

.tx-events .typo3-messages li.alert-success {
  background: rgb(31, 63, 44);
  color: #fff;
  padding: 0.5rem 1rem;
}

.tx-events .typo3-messages li.alert-danger {
  background: #dd3737;
  color: #fff;
  padding: 0.5rem 1rem;
}


.tx-events .btn, .tx-indexedsearch-searchbox input[type="submit"] {
  background: rgb(31, 63, 44);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.tx-events .form-group {
  margin-bottom: 1rem;
}

.tx-events label {
  display: block;
  margin-bottom: 0.5rem;
}

.tx-events input[type="text"], .tx-indexedsearch-searchbox input[type="text"] {
  padding: 0.5rem;
  border: 1px solid rgb(31, 63, 44);
  border-radius: 5px;
  max-width: 300px;
  width: 100%;
  line-height: 22px;
  outline: none;
}

.tx-events input[type="submit"], .tx-indexedsearch-searchbox input[type="submit"] {
  font-size: 1rem;
}

.tx-events .errors {
  color: #dd3737;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.tx-indexedsearch-searchbox fieldset {
  padding: 1rem;
}

.tx-indexedsearch-searchbox label {
  display: block;
  margin-bottom: 0.5rem;
}

.tx-indexedsearch-searchbox input[type="text"] {
  margin-bottom: 1rem;
}

.tx-indexedsearch-browsebox ul {
  padding: 0;
  list-style: none;
}

ul.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  padding: 0;
}

ul.partners li {
  flex: 1;
}

ul.partners li a {
  text-align: center;
  color: #14201a;
  text-decoration: none;
  display: block;
}

ul.partners li span.img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 150px;
  margin-bottom: 1rem;
}

ul.partners li img {
  height: auto;
  max-height: 150px;
  display: block;
}

footer {
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 3px solid rgb(31, 63, 44);
}

footer .logo {
  margin-bottom: 1rem;
}

footer p {
  margin-bottom: 1rem;
}

footer a {
  text-decoration: none;
}

footer .container > .flex {
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

footer .container > .flex > div {
  max-width: 50%;
}

footer nav ul {
  font-size: 1rem;
  line-height: 1.5rem;
}

footer nav a {
  color: #252525;
}

@media (min-width: 1240px) {
  .menu-row nav li {
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    position: relative;
  }

  .menu-row nav li.selected {
    border-bottom: 3px solid rgb(31, 63, 44);
  }

  .menu-row nav ul ul {
    display: none;
    position: absolute;
    left: -1rem;
    top: 100%;
    padding: 0.5rem 1rem;
    background: white;
    flex-direction: column;
    width: 100%;
    min-width: 150px;
    max-width: 350px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .menu-row nav ul li:hover ul {
    display: flex;
  }

  .menu-row nav li a {
    padding: 0.5rem 0;
  }

  .menu-row .menu-right .menu-toggle,
  .menu-row .menu-right .menu-close {
    display: none;
  }
}

@media (width < 1240px) {
  .menu-row nav {
    background: white;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .menu-row nav .menu-close {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    font-size: 1.5rem;
    color: #252525;
  }

  .menu-row nav ul {
    flex-direction: column;
    padding: 2rem;
  }

  .menu-row nav ul ul {
    padding: 1rem 0 0 1rem;
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
    border: 1px solid rgb(31, 63, 44);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
  }

  footer .container > .flex > div {
    max-width: 100%;
  }

  ul.partners {
    flex-direction: column;
  }

  ul.partners li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
