@import url("https://use.typekit.net/iwy4xgx.css");

.container { max-width: 1440px; margin: auto; }

.events-result-wrapper { align-self: stretch; height: auto; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 16px; display: flex; }
.events-result-wrapper .result-text { max-width: 1063px; height: auto; color: #153E54; font-size: 38px; font-family: NotoSerif; line-height: 38px; word-wrap: break-word; }
.events-result-wrapper .result { color: #153E54; font-size: 19px; font-family: Atkinson Hyperlegible; font-weight: 700; line-height: 19px; word-wrap: break-word; }

.event-items-wrapper { position: relative; min-height: 100px; transition: opacity 0.5s ease-in-out; align-self: stretch; height: auto; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 64px; display: flex; }
.event-items-wrapper .event-grid {  position: relative; min-height: 100px; transition: opacity 0.5s ease-in-out; align-self: stretch; justify-content: flex-start; align-items: flex-start; gap: 64px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-item { flex: 1 1 0; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 24px; display: inline-flex; }
.event-item .event-wrapper { align-self: stretch; height: auto; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 16px; display: flex; }
.event-item .event-wrapper .event-tags { align-self: stretch; justify-content: flex-start; align-items: center; gap: 4px; display: inline-flex; }
.event-item .event-wrapper .event-tags .event-type { color: #153E54; font-size: 16px; font-family: Atkinson Hyperlegible; font-weight: 400; word-wrap: break-word; }
.event-item .event-wrapper .event-tags .event-dot { width: 10px; height: 10px; justify-content: center; align-items: center; gap: 10px; display: flex; }
.event-item .event-wrapper .event-tags .event-dot .dot { width: 4px; height: 4px; background: #153E54; }
.event-item .event-wrapper .event-tags .event-start-date { color: #153E54; font-size: 16px; font-family: Atkinson Hyperlegible; font-weight: 400; word-wrap: break-word; }
.event-item .event-wrapper .event-tags .event-start-time { color: #153E54; font-size: 16px; font-family: Atkinson Hyperlegible; font-weight: 400; word-wrap: break-word; }

.event-item .event-wrapper .readmore_button { display: block; /* Display initially */ overflow: hidden; justify-content: center; align-items: center; gap: 10px; width: 100%; display: block; }
.event-item .event-wrapper .readmore_button a { width: 100%; width: calc(100% - 4px - (2*24px)); text-align: center; background: white; padding: 12px 24px; border-radius: 2px; border: 2px solid #DDCFC3 !important; line-height: 1; }

.event-item .event-wrapper .event-infos { align-self: stretch; height: auto; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 12px; display: flex; }
.event-item .event-wrapper .event-infos .event-label { align-self: stretch; color: #153E54; font-size: 24px; font-family: Atkinson Hyperlegible; font-weight: 700; line-height: 24px; word-wrap: break-word; }
.event-item .event-wrapper .event-infos .event-location { align-self: stretch; color: #153E54; font-size: 19px; font-family: Atkinson Hyperlegible; font-weight: 700; line-height: 19px; word-wrap: break-word; }
.event-item .event-wrapper .event-infos .event-description { align-self: stretch; color: #000000; font-size: 16px; font-family: Atkinson Hyperlegible; font-weight: 400; word-wrap: break-word; }

.event-item .event-wrapper .event-button-wrapper {}
.event-item .event-wrapper .event-button-wrapper a.event-button { display: flex;}

.event-item .event-wrapper {}

.flatpickr-calendar.rangeMode.animate.open.arrowTop.arrowLeft {
  border-radius: 0;
  margin-left: -60px;
  margin-top: -4px;
  width: 315px;
  transform: scale(0.9);
}
.flatpickr-calendar.arrowTop:after, .flatpickr-calendar.arrowTop:before {
  display:none;
}
.flatpickr input,
.flatpickr input::placeholder{color:rgba(var(--clr-text-lt-rgb),1); align-items: center;
  color: #153E54;
  display: flex !important;
  font-weight: 700 !important;
  text-align: left;}

.filter-datum { align-items:center;background:var(--colors-alpin-primary,#FFFFFF);border:2px solid var(--colors-creme-darker,#DDCFC3);border-radius:2px;cursor:pointer;display:flex;padding:14px 16px; }
.filter-datum input { margin-left: 5px; align-items: center; color: #153E54; display: flex; font-weight: 700; text-align: left; border: 0px; font-size: 16px; width: 200px; }
.filter-datum .input-button { display: none; width: calc(100% - 235px); justify-content: flex-end; }
.filter-datum .input-button .icon-close { display: flex; } 
.filter-datum .input-button .icon-close svg:hover .lines { fill:#153E54;} 
.filter-datum .input-button .icon-close svg:hover .background { stroke: white; } 

/*! CSS Reset */
*,:after,:before{box-sizing:border-box;}
::selection{background:var(--clr-background-dk);color:var(--clr-text-dk);text-shadow:none;}
::placeholder{color:rgba(var(--clr-text-lt-rgb),1);}
[type=checkbox]:checked,[type=checkbox]:not(:checked){left:-9999px;position:absolute;}
[type=checkbox]:checked+span:not(.slider),[type=checkbox]:not(:checked)+span:not(.slider){cursor:pointer;display:inline-block!important;font-size:var(--fs-form-input);margin:7px 0!important;padding-left:50px!important;padding-top:1px;position:relative;text-transform:none;}
[type=checkbox]+span:not(.slider):before{height:28px;left:0;width:28px;}
[type=checkbox]+span:not(.slider):before,[type=checkbox]:checked+span:not(.slider):after{border-radius:var(--br-checkbox);content:"";position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);}
[type=checkbox]:checked+span:not(.slider):after{background-color:var(--clr-primary);height:14px;left:7px;width:14px;}
[type=checkbox]+span:not(.slider):before{background-color:rgba(var(--clr-base-dk-rgb),.05)!important;}
@media (max-width:767px){
  [type=checkbox]:checked+span:not(.slider),[type=checkbox]:not(:checked)+span:not(.slider){font-size:var(--fs-form-input-tablet);letter-spacing:var(--ls-form-input-tablet);}
}
@media (max-width:575px){
  [type=checkbox]:checked+span:not(.slider),[type=checkbox]:not(:checked)+span:not(.slider){font-size:var(--fs-form-input-mobile);letter-spacing:var(--ls-form-input-mobile);}
}


.filtering-component__next1{min-width:250px;position:relative;}
.filtering-component__trigger-menu{align-items:center;background:var(--colors-alpin-primary,#FFFFFF);border:2px solid var(--colors-creme-darker,#DDCFC3);border-radius:2px;cursor:pointer;display:flex;padding:14px 16px;}
.filtering-component__filter-panel{display:none;left:0;position:absolute;top:calc(100% - 11px);z-index:9999;}
.filtering-component__filter-main{align-items:center;color:#153E54;display:flex;font-weight:700;text-align:left;}
.filtering-component__trigger-menu>svg{display:block;float:right;min-width:14px;position:absolute;right:23px;}
.filtering-component__trigger-menu>svg.location{display:block;float:right;min-width:14px;position:relative;left:0px;margin-right: 8px;}
.filtering-component__next1.active2:not(".filter-datum") .filtering-component__trigger-menu>svg:not(".location"){transform:rotate(180deg);}
.filtering-component__next1.active2:not(".filter-datum") svg *{fill:#fff;}
.filtering-component__type-select{background-color:#fff;box-shadow:-5px 0 16px rgba(0,0,0,.1);color:#414141;list-style:none;margin:10px 0 0;padding:0;}
.filtering-component__next1.active2 .filtering-component__filter-panel{display:block;width:100%;}
.filtering-component__next1.active2:not(".filter-datum") .filtering-component__trigger-menu:not(.sorting){background:#153E54;}
.filtering-component__next1.active2:not(".filter-datum") .filtering-component__filter-main{color:#fff;}
body .custom-fields [type=checkbox]:checked+span,
body .custom-fields [type=checkbox]:not(:checked)+span:not(.slider),
body .custom-fields [type=checkbox]:not(checked)+span{padding-bottom:0;padding-left:30px!important;}
.custom-fields [type=checkbox]+span:before,.custom-fields [type=checkbox]:checked+span:after{background-color:#fff!important;border:1.5px solid var(--colors-anthrazit-primary,#000000);border-radius:2px;content:"";height:16px;left:0;position:absolute;top:10px;width:16px;}
.custom-fields [type=checkbox]:checked+span:before{background-color:#153E54!important;background-image:url(https://26808675.fs1.hubspotusercontent-eu1.net/hubfs/26808675/2023-assets/Hausdetailseite-Page/Vector.svg);background-position:50%;background-repeat:no-repeat;background-size:10px 10px;border-radius:0;content:"";height:16px;left:0;position:absolute;top:10px;width:16px;z-index:1;}
.custom-fields [type=checkbox]:checked+span:not(.slider),
.custom-fields [type=checkbox]:not(:checked)+span:not(.slider){margin:0!important;padding:0 0 0 30px!important;}
.custom-fields input[type=checkbox]{ cursor:pointer;height:20px!important;margin-bottom:0!important;margin-left:0;margin-right:8px;margin-top:0;opacity:0;width:100%;}
.custom-fields li{background:var(--colors-alpin-primary,#FFFFFF);border-bottom:2px solid var(--colors-creme-darker,#DDCFC3);font-size:14px;font-style:normal;font-weight:300;line-height:normal;margin:0;padding:17px 20px;text-align:left;text-transform:capitalize;}
.custom-fields li:hover{font-weight:700;}
#main-filter-content .button { justify-content: flex-start; align-items: flex-start; display: flex: }

.filtering-component__next1.active2 .filtering-component__trigger-menu,
.filtering-component__next1.active .filtering-component__trigger-menu { background: #153E54; }
.filtering-component__next1.active2 svg *,
.filtering-component__next1.active svg *{fill:#fff;}
.filtering-component__next1.active2 .filtering-component__filter-main,
.filtering-component__next1.active .filtering-component__filter-main{color:#fff;}
@media (min-width:1440px){
  .filtering-component__trigger-menu{height:100%;}
  .filtering-component__next1{flex-basis:calc(100% - 8px - 115px);margin-bottom:5px;margin-right:10px;}
  div#main-filter-content{display:flex; width: 100%;}
  #main-filter-content .button button { height: 66.5px; }
}

@media (max-width:1440px){
  .filtering-component__filter-panel{display:none;}
  .flat-listing-cm .t-row>div:not(.left-part):not(:first-child){flex-basis:175px;min-width:175px;width:175px;}

}

@media (max-width:1199px){
  .section-wrapper { padding-left: 32px; padding-right: 32px; }
  .event-items-wrapper .event-grid {
    display: grid;
    gap: 40px 24px;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width:1023px){
  .section-wrapper { padding-left: 32px; padding-right: 32px; }
  .section-wrapper .section-intro .text-block .subline { width: 100%; }
  .listing-wrapper { padding-top: 32px; gap: 0; }
  .result-items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-wrapper .result-info { width: 100%; }
  .listing-wrapper .result-info .text { width: 100%; }
  #main-filter-content { display: grid; width: 100%; }
  #main-filter-content .button { justify-content: flex-end; margin-top: 16px; }
}

@media (min-width:744px) and (max-width:1440px){
  div#main-filter-content{justify-content:space-between;}
  .filtering-component__next1{flex-basis:calc(50% - 8px); height: 56px;}
}

@media (max-width:744px){
  .section-wrapper { padding-left: 16px; padding-right: 16px; }
  .section-wrapper .section-intro .text-block .subline { width: 100%; }
  .listing-wrapper { padding-top: 32px; gap: 0; }
  .result-items-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .listing-wrapper .result-info { width: 100%; }
  .listing-wrapper .result-info .text { width: 100%; }
  #main-filter-content { display: grid; width: 100%; }
  #main-filter-content .button { display: grid; justify-content: flex-end; }

  .event-items-wrapper .event-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(1,minmax(0,1fr));
  }
}

@media (max-width:743px){

  .right-part .filtering-component__next1{margin-bottom:8px; }
}


@media (min-width: 744px) and (max-width:1200px){ 
  div#main-filter-content {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  div#doFiltering {
    display: grid;
    grid-area: 3;
    grid-column: 2;
    margin-top: 0px !important;
    justify-content: flex-end !important;
  }
}


.event-description {
    overflow: hidden;
    max-height: 80px;  /* 20px * 4 (für 4 Zeilen) */
    line-height: 20px;
    font-size: 16px;
}

.event-item .event-wrapper .link a {
    display: inline-flex;
    justify-content: end;
    align-items: center;
    font-family: Atkinson Hyperlegible;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #153E54;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 10%;
  transform: translateY(-50%);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}