body {
  min-width: 0;
}

#page-wrapper {
  overflow: visible;
}

#site-menu {
  position: sticky;
  top: 0;
  z-index: 1000;
}

#nav {
  text-align: center;
}

#nav > ul > li {
  margin-left: 0.85em;
}

#nav > ul > li a {
  letter-spacing: 0;
}

/* Logo in der normalen (Desktop-)Ansicht ca. 12% kleiner als das
   Theme-Original (180px/88px), die mobile Groesse in der Media Query
   weiter unten bleibt davon unberuehrt. */
#logo-wrapper h1 {
  height: 158px;
  width: 158px;
  line-height: 158px;
  border-radius: 79px;
}

#logo-wrapper h1 img {
  height: 78px;
}

#my-slide-banner header {
  padding: 0.6em 0;
}

#my-slide-banner header h2 {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.icon.major:before,
.icon.solid:before,
.icon.brands:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.icon.brands:before {
  font-family: "Font Awesome 5 Brands";
  font-weight: 400;
}

.fa-question:before { content: "\f128"; }
.fa-dice:before { content: "\f522"; }
.fa-user-friends:before { content: "\f500"; }
.fa-calendar:before { content: "\f133"; }
.fa-bars:before { content: "\f0c9"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-discord:before { content: "\f392"; }
.fa-facebook:before { content: "\f09a"; }
.fa-instagram:before { content: "\f16d"; }
.fa-chevron-left:before { content: "\f053"; }
.fa-chevron-right:before { content: "\f054"; }
.fa-times:before { content: "\f00d"; }
.fa-expand:before { content: "\f065"; }
.fa-crosshairs:before { content: "\f05b"; }

.event-list {
  margin-top: 2em;
}

.event-meta {
  margin-bottom: 0.75em;
}

.event-time {
  background: rgba(0, 154, 56, 0.14);
  border-radius: 4px;
  color: #1a1a1a;
  display: inline-block;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.35em;
  padding: 0.15em 0.6em;
}

.event-date {
  color: #007a2f;
  font-weight: 600;
}

.faq-box {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.5em 1.75em;
}

.faq-box h3 {
  margin-bottom: 0.75em;
}

.faq-list {
  display: grid;
  gap: 0.6em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-list li {
  padding-left: 1.3em;
  position: relative;
}

.faq-list li:before {
  background: #009a38;
  border-radius: 50%;
  content: "";
  height: 0.5em;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 0.5em;
}

/* Bild und Kartenausschnitt teilen sich dasselbe aspect-ratio, damit ein
   Foto nie hoeher wirkt als die Karte daneben/darunter. object-fit:cover
   beschneidet Fotos mit abweichendem Seitenverhaeltnis dafuer sauber
   statt sie zu verzerren. */
.box.post .image {
  aspect-ratio: 4 / 3;
}

.box.post .image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.event-map {
  position: relative;
}

.event-map iframe {
  border: 0;
  border-radius: 5px;
  display: block;
  height: 100%;
  width: 100%;
}

.map-fullscreen-link {
  align-items: center;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  color: #333;
  display: flex;
  height: 2em;
  justify-content: center;
  position: absolute;
  left: 3em;
  top: 0.5em;
  width: 2em;
  z-index: 1;
}

.map-fullscreen-link:before {
  margin: 0;
}

.map-fullscreen-link:hover,
.map-fullscreen-link:focus {
  background: #f2f2f2;
}

.map-recenter-btn {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  color: #333;
  cursor: pointer;
  display: flex;
  font: inherit;
  height: 2em;
  justify-content: center;
  min-width: 0;
  padding: 0;
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  width: 2em;
  z-index: 1;
}

.map-recenter-btn:before {
  margin: 0;
}

.map-recenter-btn:hover,
.map-recenter-btn:focus {
  background: #f2f2f2;
}

/* Ein 20-30% schmaler Bild-/Kartenausschnitt waere hier zu klein - Bild
   und Karte bekommen daher einheitlich die volle Breite statt neben dem
   Text zu fliessen. Da Ueberschrift, Bild/Karte und Details in dieser
   Reihenfolge im HTML stehen, ergibt display:flex + flex-direction:column
   automatisch genau diese Anzeige-Reihenfolge, ohne "order" noetig zu
   machen. */
@media screen and (max-width: 840px) {
  .box.post {
    display: flex;
    flex-direction: column;
  }

  .box.post .image {
    aspect-ratio: 8 / 3;
    float: none;
    margin: 1em 0;
    width: 100%;
  }

  .box.post .inner {
    margin-left: 0;
  }

  /* Kurzer, zentrierter gruener Trennstrich zwischen den einspaltig
     gestapelten Terminen (gleicher Akzentton wie z.B. bei
     .home-info-panel), damit klar bleibt, wo ein Termin endet und der
     naechste beginnt. */
  .event-list section + section {
    margin-top: 2.5em;
    padding-top: 2.5em;
    position: relative;
  }

  .event-list section + section:before {
    background: #009a38;
    content: "";
    display: block;
    height: 4px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: 4em;
  }
}

.home-schedule-grid {
  margin-top: 3em;
}

.home-info-panel {
  border-top: 4px solid #009a38;
  box-shadow: 0 1px 0 #e0e0e0 inset;
  height: 100%;
  padding: 1.75em 0 0 0;
}

.home-info-panel h3 {
  margin-bottom: 0.75em;
}

.regular-dates {
  list-style: disc;
  margin: 0;
  padding-left: 1.15em;
}

.regular-dates li {
  padding-left: 0.25em;
}

.compact-event-list {
  display: grid;
  gap: 0.85em;
}

.compact-event {
  align-items: flex-start;
  border-bottom: 1px solid #e0e0e0;
  display: grid;
  gap: 1em;
  grid-template-columns: minmax(6.5em, auto) 1fr;
  padding-bottom: 0.85em;
}

.compact-event time {
  color: #007a2f;
  font-weight: 600;
  line-height: 1.35em;
}

.compact-event strong,
.compact-event small {
  display: block;
}

.compact-event span {
  background: rgba(0, 154, 56, 0.14);
  border-radius: 4px;
  color: #1a1a1a;
  display: inline-block;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.4em;
  margin-top: 0.3em;
  padding: 0.15em 0.55em;
}

.compact-event small {
  color: #777;
  font-size: 0.9em;
  line-height: 1.35em;
  margin-top: 0.3em;
}

.compact-events-link {
  display: inline-block;
  font-weight: 600;
  margin-top: 1em;
}

.gallery-grid {
  column-count: 4;
  column-gap: 1em;
  margin: 0 0 2.5em;
}

.gallery-grid a {
  background: #f5f5f5;
  display: inline-block;
  margin: 0 0 1em;
  overflow: hidden;
  width: 100%;
}

.gallery-grid img {
  display: block;
  min-height: 12em;
  object-fit: cover;
  width: 100%;
}

.impressions-gallery .major {
  margin-bottom: 1.5em;
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  align-items: center;
  background: rgba(15, 15, 15, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 4.5em 5.5em 3.5em;
  position: fixed;
  z-index: 2000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  text-align: center;
}

.lightbox-content img {
  display: block;
  max-height: calc(100vh - 10em);
  max-width: calc(100vw - 11em);
  object-fit: contain;
}

.lightbox-content figcaption {
  color: #fff;
  line-height: 1.5em;
  margin-top: 0.8em;
}

.lightbox button {
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  height: 3em;
  line-height: 3em;
  padding: 0;
  position: absolute;
  text-align: center;
  width: 3em;
}

.lightbox button:before {
  margin: 0;
}

.lightbox button:hover,
.lightbox button:focus {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  right: 1.25em;
  top: 1.25em;
}

.lightbox-prev {
  left: 1.25em;
}

.lightbox-next {
  right: 1.25em;
}

.lightbox-counter {
  bottom: 1.25em;
  color: #fff;
  font-size: 0.95em;
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
}

.nav-toggle-input {
  display: none;
}

#nav-toggle-label {
  display: none;
}

@media screen and (max-width: 840px) {
  #page-wrapper {
    padding-top: 0;
  }

  #header,
  div#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: block;
    padding: 0;
    background: none;
    pointer-events: none;
  }

  #header h1 {
    padding: 0;
    margin: 0;
  }

  #logo-wrapper {
    padding-top: 0;
  }

  #logo-wrapper h1 {
    height: 90px;
    line-height: 90px;
    width: 90px;
    pointer-events: auto;
  }

  #logo-wrapper h1 img {
    height: 44px;
  }

  #nav:after {
    display: none;
  }

  #site-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    min-height: 44px;
    background-color: #333;
    background-image: url("../images/bg01.png");
    box-shadow: 0 4px 0 0 #009a38;
  }

  #nav-toggle-label {
    align-items: center;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 1em;
    width: 1.5em;
    height: 44px;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
  }

  #nav-toggle-label:before {
    margin: 0;
  }

  #nav > ul {
    display: none;
  }

  .nav-toggle-input:checked ~ #nav > ul {
    display: block;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
  }

  .nav-toggle-input:checked ~ #nav-toggle-label:before {
    content: "\f00d";
  }

  #page-wrapper:has(.nav-toggle-input:checked) #header {
    display: none;
  }

  #nav > ul > li {
    display: block;
    margin: 0;
  }

  #nav > ul > li.current:before {
    display: none;
  }

  #nav > ul > li a {
    padding: 0.75em 0.5em;
  }

  .home-schedule-grid {
    margin-top: 2em;
  }

  .gallery-grid {
    column-count: 2;
  }

  .lightbox {
    padding: 4em 1em 4.5em;
  }

  .lightbox-content img {
    max-height: calc(100vh - 10em);
    max-width: calc(100vw - 2em);
  }

  .lightbox-nav {
    bottom: 1em;
  }

  .lightbox-prev {
    left: 1em;
  }

  .lightbox-next {
    right: 1em;
  }
}

@media screen and (max-width: 480px) {
  .compact-event {
    gap: 0.35em;
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }
}

.document-list {
  list-style: disc;
  margin: 0 0 1.5em 1.5em;
}

.timeline {
  position: relative;
  box-sizing: border-box;
  margin-top: 2em;
}

.timeline *,
.timeline :after,
.timeline :before {
  box-sizing: inherit;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background-color: #cdeeda;
  z-index: 1;
}

.timeline__wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0.625em 2.5em 0.625em 0;
  z-index: 2;
  animation-duration: 1s;
  animation-fill-mode: both;
}

.timeline__item:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background-color: #fff;
  border: 4px solid #009a38;
  border-radius: 50%;
  z-index: 1;
}

.timeline__item--right {
  left: 50%;
  padding: 0.625em 0 0.625em 2.5em;
}

.timeline__item--right:after {
  left: -10px;
}

.timeline__content {
  position: relative;
  display: block;
  padding: 1.25em;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 1px 0 #e0e0e0 inset;
}

.timeline__content h3 {
  margin: 0 0 0.5em;
  color: #009a38;
}

.timeline__content p {
  margin: 0;
  line-height: 1.5;
}

.timeline__image {
  display: block;
  width: 160px;
  max-width: 100%;
  margin: 0.75em auto 0;
}

.timeline__item.fadeIn {
  animation-name: timelineFadeIn;
}

@keyframes timelineFadeIn {
  0% {
    opacity: 0;
    top: 70px;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}

@media screen and (max-width: 840px) {
  .timeline:before {
    left: 10px;
    margin-left: 0;
  }

  .timeline__item {
    left: 0 !important;
    width: 100%;
    padding-left: 2.5em;
    padding-right: 0;
  }

  .timeline__item:after {
    left: 2px;
    right: auto;
  }
}
