body.karta-events-page.page-template:not(.new) .page > .container > .page-wrapper { margin: 0; padding: 24px 8px 16px; }
body.karta-events-page.page-template:not(.new) .page .page-wrapper .posts .post.post--single > .post__wrapper { padding-top: 0; padding-bottom: 0; }
body.karta-events-page .post__wrapper > p:empty { display: none; }
.events-filters { margin-bottom: 24px; }
.events-filters .post-category-filter { margin: 0 0 20px; }
body.karta-events-page .events-filters label,
body.karta-events-page .events-filters input,
body.karta-events-page .events-filters select,
body.karta-events-page .events-filters button {
  font-family: "BerlinType", "BerlinType Fallback", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-transform: none;
  letter-spacing: normal;
  color: #222432;
}
.events-filters__form { margin: 0; }
.events-filters__fields { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.events-filters__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.events-filters__search { flex: 1 1 50%; }
.events-filters__location { flex: 1 1 40%; }
body.karta-events-page .events-filters__field input,
body.karta-events-page .events-filters__field select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d7d8de;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: none;
}
body.karta-events-page .events-filters__field select { padding-right: 32px; text-overflow: ellipsis; }
body.karta-events-page .events-filters .events-filters__submit {
  height: 44px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid #5a628a;
  border-radius: 8px;
  background: #5a628a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
body.karta-events-page .events-filters .events-filters__submit:hover { background: #484f73; }
.events-filters__field input:focus-visible,
.events-filters__field select:focus-visible,
.events-filters__submit:focus-visible { outline: 2px solid #5a628a; outline-offset: 2px; }
body.karta-events-page .events-filters__toggle { display: inline-flex; align-items: center; gap: 10px; position: relative; margin: 0; cursor: pointer; }
.events-filters__toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.events-filters__track { display: block; flex: 0 0 36px; width: 36px; height: 22px; border-radius: 11px; background: #777986; }
.events-filters__track::after { content: ''; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #fff; }
.events-filters__toggle input:checked + .events-filters__track { background: #5a628a; }
.events-filters__toggle input:checked + .events-filters__track::after { margin-left: 16px; }
.events-filters__toggle input:focus-visible + .events-filters__track { outline: 2px solid #5a628a; outline-offset: 3px; }
.events-past { margin-top: 24px; }
@media (max-width: 660px) {
  body.karta-events-page.page-template:not(.new) .page > .container > .page-wrapper { padding-top: 16px; }
  .events-filters__fields { flex-wrap: wrap; }
  .events-filters__search { flex-basis: 100%; }
  .events-filters__location { flex: 1 1 0; }
}

body.karta-events-page .events-filters__summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  padding: 10px 14px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #d7d8de;
  border-radius: 8px;
  background: #fff;
  list-style: none;
  color: #5a628a;
  font-family: "BerlinType", "BerlinType Fallback", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
}
.events-filters__summary:focus-visible { outline: 2px solid #5a628a; outline-offset: 4px; }
.events-filters__content { padding-top: 16px; }

.events-filters__summary::-webkit-details-marker { display: none; }
.events-filters__summary::marker { content: ''; }
.events-filters__summary svg { display: block; flex-shrink: 0; }
.events-filters__chevron { margin-left: 6px; }
body.karta-events-page .events-filters__summary:hover { background: #f0f1f5; border-color: #5a628a; }
body.karta-events-page .events-filters[open] > .events-filters__summary { color: #fff; background: #5a628a; border-color: #5a628a; }
.events-filters[open] .events-filters__chevron { transform: rotate(180deg); }

.events-filters__options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
body.karta-events-page .events-filters__reset {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d7d8de;
  border-radius: 8px;
  background: #fff;
  color: #5a628a;
  font-family: "BerlinType", "BerlinType Fallback", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}
body.karta-events-page .events-filters__reset:hover { background: #f0f1f5; border-color: #5a628a; }
.events-filters__reset:focus-visible { outline: 2px solid #5a628a; outline-offset: 2px; }

.events-filters__emoji { display: inline-block; margin-right: 3px; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-weight: 400; }

.events-toolbar { position: relative; margin-bottom: 24px; }
.events-toolbar .events-filters { margin-bottom: 0; }
.events-toolbar .events-filters__summary { max-width: calc(100% - 190px); }
body.karta-events-page .events-toolbar__add {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d7d8de;
  border-radius: 8px;
  background: #fff;
  color: #5a628a;
  font-family: "BerlinType", "BerlinType Fallback", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-decoration: none;
}
body.karta-events-page .events-toolbar__add:hover { background: #f0f1f5; border-color: #5a628a; }
.events-toolbar__add:focus-visible { outline: 2px solid #5a628a; outline-offset: 2px; }
@media (max-width: 480px) {
  .events-toolbar .events-filters__summary { max-width: 100%; margin-bottom: 56px; }
  body.karta-events-page .events-toolbar__add { top: 56px; left: 0; right: auto; }
  .events-toolbar .events-filters__content { padding-top: 16px; }
}
