body.logged-in pre {
  visibility: visible;
  position: relative;
  left: initial;
}

.event-grid-cards {
  display: flex;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}
.event-grid-cards > * {
  width: 100%;
}
@media (min-width: 700px) {
  .event-grid-cards > * {
    width: calc(50% - 15px);
  }
}
@media (min-width: 1200px) {
  .event-grid-cards > * {
    width: calc(33.33% - 20px);
  }
}

.events-h2 {
  margin-bottom: 1.25rem !important;
  font-size: 1.5rem;
  font-family: "FSM eW05 - Bold", sans-serif;
  text-align: center;
}

.event-location-entry .locName {
  font-family: "FSM eW05 - Bold", sans-serif;
}
@media (min-width: 700px) {
  .events-h2 {
    margin-bottom: 2.1875rem !important;
    font-size: 1.75rem;
  }
}
@media (min-width: 1200px) {
  .events-h2 {
    margin-bottom: 2.625rem !important;
    font-size: 1.875rem;
  }
}
.events-h2::after {
  display: block;
  margin: 0.9375rem auto auto;
  content: "";
  width: 30px;
  height: 1px;
  background-color: #92b248;
}
@media (min-width: 700px) {
  .events-h2::after {
    margin: 1.25rem auto auto;
  }
}

.event-list-entries {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-wrapper {
  height: 600px;
}
@media (min-width: 1200px) {
  .map-wrapper {
    height: 676px;
  }
  .single .map-wrapper {
    height: 400px;
  }
}
.map-wrapper > div {
  height: 100%;
}
.map-wrapper .leaflet-container a:hover {
  text-decoration: none !important;
}
.map-wrapper .leaflet-container a::after {
  display: none !important;
}
.map-wrapper .leaflet-container .leaflet-popup-content-wrapper {
  padding: 8px;
}
.map-wrapper .leaflet-container .leaflet-popup-content {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  max-height: 500px;
  overflow: auto;
}
.map-wrapper .leaflet-container .leaflet-popup-content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.map-wrapper .leaflet-container .leaflet-popup-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0);
}
.map-wrapper .leaflet-container .leaflet-popup-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1000px;
}
.map-wrapper .leaflet-container .leaflet-popup-close-button {
  display: none !important;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.event-meta svg {
  flex-shrink: 0;
  width: 14px;
  height: auto;
  margin-bottom: 3px;
}

.event-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.event-badges .event-badges-primary,
.event-badges .event-badges-secondary {
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}
.event-badges .event-badges-primary {
  background: #557211;
  color: #ffffff;
}
.event-badges .event-badges-secondary {
  background: #ead63e;
  color: #000000;
}

.event-organizers a {
  color: #006b86;
  text-decoration: underline;
}

.event-preview-list {
  padding: 30px 0;
  border-bottom: 1px solid #c4c4c4;
  transition: all 250ms ease;
  font-family: "FSM eW05 - Regular", sans-serif;
}
.event-preview-list:last-child {
  border-bottom: none;
}
.event-preview-list:hover {
  text-decoration: none !important;
}
.event-preview-list:hover .event-tile-footer * {
  color: #000000;
}
.event-preview-list-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}
.leaflet-container .event-preview-list-inner {
  width: 600px;
}
@media (min-width: 1200px) {
  .event-preview-list-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }
}
.event-preview-list-image {
  flex-shrink: 0;
}
.event-preview-list-image img {
  width: 220px;
  height: auto;
}
.event-preview-list-content {
  color: #000000;
}
.event-preview-list-content > * {
  margin-top: 12px;
}
.event-preview-list .event-title {
  display: inline-block;
}

.event-preview-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  overflow: hidden;
  transition: all 250ms ease;
}
.event-preview-tile:hover {
  text-decoration: none !important;
}
.event-preview-tile:hover .event-preview-tile-footer * {
  color: #ffffff;
}
.event-preview-tile-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
.event-preview-tile-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.event-preview-tile-header, .event-preview-tile-footer {
  position: relative;
  padding: 20px;
}
.event-preview-tile-footer {
  margin-top: auto;
  color: #ffffff;
}
.event-preview-tile-footer > * {
  margin-top: 12px;
}
.event-preview-tile .event-title {
  display: inline-block;
}

.event-status {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 8px;
  border-radius: 1000px;
  color: white;
  background: black;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  vertical-align: text-bottom;
}

.event-title {
  font-size: 24px;
  font-weight: bold;
}

.events-filters-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
@media (min-width: 1200px) {
  .events-filters-main {
    align-items: flex-end;
  }
}
.events-filters-input {
  width: 100%;
}
@media (min-width: 1200px) {
  .events-filters-input {
    max-width: calc(25% - 22.5px);
  }
}
.events-filters input,
.events-filters select,
.events-filters button {
  padding: 14px 20px !important;
  width: 100%;
  font-size: 14px;
  border-radius: 0;
}
.events-filters input,
.events-filters select {
  border: 1px solid #c4c4c4;
}
.events-filters input:hover, .events-filters input:active, .events-filters input:focus, .events-filters input:focus-visible,
.events-filters select:hover,
.events-filters select:active,
.events-filters select:focus,
.events-filters select:focus-visible {
  outline: none;
  border-color: #217489;
}
.events-filters button {
  outline: none;
  border: 1px solid #217489;
  color: #ffffff;
  background: #217489;
}
.events-filters button:hover, .events-filters button:active, .events-filters button:focus {
  background: #006b86;
  filter: brightness(1);
}
.events-filters .btn-secondary {
  background: #ffffff;
  border-color: #ffffff;
  color: #217489;
}
.events-filters .btn-secondary:hover, .events-filters .btn-secondary:active, .events-filters .btn-secondary:focus {
  background: #ffffff;
  border-color: #006b86;
  color: #006b86;
  filter: brightness(1);
}

.events-results-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1200px) {
  .events-results-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.events-results-header-results {
  font-family: "FSM eW05 - Bold", sans-serif;
}
@media (min-width: 1200px) {
  .events-results-header-results {
    font-size: 24px;
  }
}
.events-results-header-options {
  display: flex;
  align-items: center;
  gap: 20px;
}
.events-results-header-views {
  display: flex;
  align-items: center;
  gap: 16px;
}
.events-results-header-view {
  position: relative;
  width: 48px;
  height: 48px;
  color: #217489;
  background-color: #ffffff;
  border-radius: 6px;
  transition: all 250ms ease;
  cursor: pointer;
}
.events-results-header-view.active {
  color: #ffffff;
  background-color: #217489;
}
.events-results-header-view svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 32px;
  height: auto;
}

.shortcode-overview-events {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.shortcode-overview-events [data-view] {
  display: none;
}
.shortcode-overview-events [data-view].active {
  display: flex;
}
.shortcode-overview-events [data-view].active.event-map-view {
  display: block;
}

.single-event-wrapper {
  padding: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.single-event-content {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}
.single-event-intro {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
}
@media (min-width: 1200px) {
  .single-event-intro {
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
  }
}
.single-event-intro .event-status {
  padding: 11px 20px;
  font-size: 14px;
}
.single-event-image {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-shrink: 0;
  width: 100%;
}
@media (min-width: 1200px) {
  .single-event-image {
    width: 35%;
  }
}
.single-event-image img {
  max-width: 100%;
  height: auto;
}
.single-event-copy {
  flex-grow: 1;
}
.single-event h1 {
  display: inline-block;
  color: #000000;
}
.single-event-title {
  margin-top: 20px;
}
.single-event-description {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1200px) {
  .single-event-description {
    flex-direction: row;
    gap: 50px;
  }
}
.single-event .event-sponsor-description {
  font-size: 1rem;
}
.single-event-divider {
  flex-shrink: 0;
  width: 100px;
}
.single-event-divider hr {
  width: 100%;
  border-color: #000000;
  border-width: 2px;
}
.single-event-meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  margin-top: 30px;
  background-color: #f0f0f0;
}
@media (min-width: 1200px) {
  .single-event-meta {
    flex-direction: row;
    gap: 40px;
  }
}
.single-event .column {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-event .column:last-child {
  justify-content: flex-end;
}

.single-event .column-small-gap {
  gap: 0px;
}
.single-event h2 {
  margin-bottom: 10px;
  text-align: left;
}
.single-event h2::after {
  margin-left: 0;
}

.single-event .column h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.single-event .column h3.contactHead {
    margin-top: 12px;
}

.single-event .column h3.pricesHead {
  margin-top: 15px;
}

.single-event .event-meta,
.single-event-information {
  font-size: 14px;
  line-height: 1.3;
}
.single-event-h5 {
  margin-bottom: 10px !important;
  font-weight: 700;
}
.single-event-information {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}
.single-event-information hr {
  width: 20px;
  border-color: #000000;
  display: none;
}
.single-event-term {
  width: 100%;
  display: block;
}
.single-event .event-map {
  margin-top: 30px;
}
.single-event .event-map {
  display: none;
}
@media (min-width: 1200px) {
  .single-event .event-map {
    display: block;
    margin-top: 0;
  }
}
.single-event .events-h2 {
  margin-top: 30px;
}
@media (min-width: 1200px) {
  .single-event .events-h2 {
    margin-top: 80px;
  }
}

/* ========================================
Events
======================================== */

@media screen and (min-width: 1200px) {

  .shortcode-overview-events {
    display: flex;
    flex-direction: row;
    gap: 30px;
  }
  
  /* Nehme an: erstes Kind ist Sidebar, zweites ist Map – das kehren wir um */
  .shortcode-overview-events > *:first-child {
    order: 2;
    flex: 1;
  }
  
  .shortcode-overview-events > *:last-child {
    order: 1;
    flex: 3;
  }

}

.events-results-header {
  margin-bottom: 19px;
}

.events-filters-main {
  display: block;
  width: 100%;
}

.events-filters-main * {
  width: 100%;
}

.events-filters-input {
  max-width: none;
  margin-bottom: 19px;
}

.events-filters-main:first-child {
  margin-top: 10px;
}

form label {
  margin-bottom: 10px !important;
}

.chosen-container-multi .chosen-choices li.search-choice {
  margin: 5px 0 0 0;
}

.events-filters input {
  padding: 12px 5px 10px 5px !important;
}

.chosen-container-multi .chosen-choices li.search-choice {
  padding: 10px 20px 10px 5px;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 10px;
}

.imgCredits {
  font-size: .75rem;
  display: block;
  line-height: 1.6;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 0 20px 0;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 20px;
}

.pagination-wrapper .pagination-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination-wrapper .pagination-label {
  margin: 0;
  padding: 0 11px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers:hover {
  border-color: #227489;
  color: #227489;
}

.pagination-wrapper .page-numbers.current {
  background-color: #227489;
  color: white;
  border-color: #227489;
  font-weight: bold;
}

.pagination-wrapper .page-numbers.dots {
  border: none;
  background: none;
  color: #888;
  cursor: default;
}

.pagination-wrapper .page-numbers.next,
.pagination-wrapper .page-numbers.prev {
  font-weight: bold;
  padding: 0 8px;
}

.pagination-wrapper h4,
.events-results-pre h4 {
  font-size: 18px;
}