@font-face {
  font-family: '57Regular';
  src: url('../_typeface/neueSerie57-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
    --dynamic-scale: calc((100vw - 375px) / 1225);
}

:root {
    /* STANDARD TYPOGRAPHY */
    --s57-reg: '57Regular', sans-serif;

    /* TYPOGRAPHIC SCALES */
    --type-160:     calc(100px + (240 - 100)  * var(--dynamic-scale));
    --type-120:     calc(60px + (120 - 60)  * var(--dynamic-scale));
    --type-100:     calc(50px + (100 - 50)  * var(--dynamic-scale));
    --type-80:      calc(40px + (80 - 40)   * var(--dynamic-scale));
    --type-60:      calc(30px + (60 - 30)   * var(--dynamic-scale));
    --type-40:      calc(20px + (40 - 20)   * var(--dynamic-scale));
    --type-30:      calc(20px + (30 - 20)   * var(--dynamic-scale));
    --type-20:      calc(15px + (20 - 15)   * var(--dynamic-scale));
    --type-15:      15px;

    --type-XL-diff: calc(5px + (15 - 5)   * var(--dynamic-scale));;
}

:root {
    /* MARGINS */
    --mar-65:       calc(20px + (65 - 20)   * var(--dynamic-scale));
    --mar-60:       calc(20px + (60 - 20)   * var(--dynamic-scale));
    --mar-40:       calc(20px + (40 - 20)   * var(--dynamic-scale));
    --mar-45:       calc(20px + (45 - 20)   * var(--dynamic-scale));
    --mar-nav:      calc(0px + (40 - 0)     * var(--dynamic-scale));
    --mar-20:       calc(10px + (20 - 10)   * var(--dynamic-scale));
    --mar-25:       calc(15px + (25 - 15)   * var(--dynamic-scale));
    --mar-10:       10px;
    --mar-15:       15px;
}

:root {
    /* BOX-PADDINGS */
    --box-pad-10:   var(--mar-10) var(--mar-15);
--box-pad-even-15:  var(--mar-15);
    --box-pad-20:   var(--mar-20) var(--mar-25);
    --box-pad-40:   var(--mar-45) var(--mar-45);
    --box-pad-60:   var(--mar-60) var(--mar-65);
}



:root {
    /* COLORS */
    --col-white:    #FFFFFF;
    --col-yellow:   #FDF901;
    --col-black:    #242622;
    --col-error:    #FC0004;
    --col-red:    #FC0004;
    --col-purple:   #7100FC;
    --col-blue:     #1E00FC;
}

.yellow {
  background-color: var(--col-yellow);
  color: var(--col-black);
}

.white {
  background-color: var(--col-white);
  color: var(--col-black);
}

.black {
  background-color: var(--col-black);
  color: var(--col-white);
}

.error {
  color: var(--col-error);
}

.red {
  background-color: var(--col-red);
  color: var(--col-white);
}

.purple {
  background-color: var(--col-purple);
  color: var(--col-white);
}

.purple-txt {
  color: var(--col-purple);
}

.blue {
  background-color: var(--col-blue);
  color: var(--col-white);
}

.blue-txt {
  color: var(--col-blue);
}



html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

* {
   transition: all 0.1s ease-in-out;
}

ul, ol {
  list-style: none; /* Remove default bullet or numbering */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

/* Optionally, you can reset styles for list items as well */
li {
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

a {
  text-decoration: none;
  color: inherit;
}

/* spacing utilities using your type scale */
.mb-160 { margin-bottom: var(--type-160); }
.mb-120 { margin-bottom: var(--type-120); }
.mb-100 { margin-bottom: var(--type-100); }
.mb-80  { margin-bottom: var(--type-80); }
.mb-60  { margin-bottom: var(--type-60); }
.mb-40  { margin-bottom: var(--type-40); }
.mb-30  { margin-bottom: var(--type-30); }
.mb-20  { margin-bottom: var(--type-20); }
.mb-15  { margin-bottom: var(--type-15); }

.xcsbl {
  /*BARRIEREFREI*/
  font-feature-settings: 'ss08' on, 'ss11' on, 'ss03' on, 'tnum' on, 'tnum' on, 'zero' on, 'kern' on;
}

body {
  font-family: var(--s57-reg) !important;
  background-color: var(--col-white);
  color: var(--col-black);
  font-size: var(--type-20);
  padding:0;
  margin: 0;
  text-rendering: geometricprecision;
  font-feature-settings: 'kern' on, 'zero' on, 'tnum' on, 'ss08' on, 'ss09' on,'ss20' on, 'dlig' on, 'ss10' on, 'ss03' on, 'case' on;
  -webkit-text-size-adjust: 100%;
  overflow-y: overlay; /* Hide vertical scrollbar but allow scrolling */
}



/* TYPOGRAPHY */

h1, h2, h3, h4, h5 {
  margin:0;
  padding:0;
  font-weight:100;
  line-height:1em;
}

.XL {
  font-size:var(--type-160);
  letter-spacing: -0.1em;
  line-height: 0.75em;
  margin-top:15px;
  margin-left: calc(-1 * var(--type-XL-diff));
}
h1, .h1 {
  font-size:var(--type-120) !important;
  letter-spacing: -0.05em;
}

h2, .h2 {
  font-size:var(--type-100) !important;
}

h3, .h3 {
  font-size:var(--type-80) !important;
}

h4, .h4 {
  font-size:var(--type-60) !important;
  line-height: 1.2em;
}

p, .p {
  font-size:var(--type-40) !important;
}

h5, .type30 {
  font-size:var(--type-30) !important;
}

p.small {
  font-size:var(--type-20) !important;
}


.contentPageHome {
  padding: var(--box-pad-60);
}


.contentPage h1, .contentPage h2, .contentPage h3, .contentPage h4 {
  margin-bottom:1em;
}
.contentPage h2, .contentPage h3, .contentPage h4 {
  margin-top:2em;
}

.contentPage *:first-child {
  margin-top:0.2em;
}




/* NAV */
nav {
  position:fixed;
  top: var(--mar-nav);
  right: var(--mar-nav);
  padding: var(--box-pad-20);
  background-color: var(--col-yellow);
  gap:20px;
  /* width: 20vw;
  min-width:320px; */
  border:2px solid var(--col-black);

  font-size: var(--type-40);
  z-index:30;
}

#menuOpen {
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap:20px;
}

.menu {
  display:flex !important;
  gap: 20px;
  align-items: center;
  cursor: pointer;
}

#menu-arrow {
  font-size:70%;
}

#menuFlyout {
  position:fixed;
  top:0;
  left:0;
  width: 100vw;
  height:100vh;
  background-color: var(--col-yellow);
  z-index:40;
  display:none;
}

#menuFlyout ul li {
  border-top: 1px solid var(--col-black);
  padding: var(--mar-20);

}

#menuFlyout ul.primary {
  font-size:var(--type-60);
}

#menuHandler {
  font-size:var(--type-40);
  padding: var(--mar-20);
  display:flex;
  flex-direction: row;
  justify-content: flex-end;
  cursor: pointer;
  width: calc(100vw - var(--mar-40)* 1.5);
}



header.start {
  padding: var(--type-120) var(--type-40) var(--type-40) var(--type-40);
}

header.event {
  padding: var(--type-160) var(--type-40) var(--type-40) var(--type-40);
}

header.event p:first-child {
  margin-bottom:0;
}

header.event p:nth-child(2) {
  margin-top:0;
  margin-bottom:0.5em;
}

header.event *:first-child {
  margin-top:0;
}

header.start p:last-child {
  margin-bottom:0;
}

img.logo {
  position:absolute;
  top: calc(15px + (30 - 15) * ((100vw - 375px) / (1600 - 375)));
  left: calc(15px + (30 - 15) * ((100vw - 375px) / (1600 - 375)));
  z-index: 39;
  width: calc(60px + (120 - 60) * ((100vw - 375px) / (1600 - 375)));
  height: auto;
}


@media only screen and (max-width: 767px) {
  nav {
    top: 0;
    right: 0;
    width: calc(100% - (var(--mar-25)*2));
    border-top: 0; border-left: 0; border-right: 0;
    height:60px;
  }

  #menuOpen {
    display:flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    height:100%;
  }

  header.start {
    padding: calc(var(--type-80)*2) var(--type-40) var(--type-40) var(--type-40);
}

}


/* BOX DESIGN */

.txt-box {
  border-bottom:2px solid var(--col-black);
  display: flex;
  flex-direction: column;
}

.txt-box.box-20 {
  padding: var(--box-pad-20);
}

.space-40 {
  display:flex;
  padding-top: var(--mar-40);
  flex-direction: column;
}

.space-60 {
  display:flex;
  padding-top: var(--mar-60);
  flex-direction: column;
}

.space-b-60 {
  display:flex;
  padding-bottom: var(--mar-60);
  flex-direction: column;
}

.txt-box.box-40 {
  padding: var(--box-pad-40);
}

.txt-box.box-60 {
  padding: var(--box-pad-60);
}



.filter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: calc(100vw - 15px);
  border-bottom:2px solid var(--col-black);
}



.filter-item {
  display: flex;
  flex-direction: column;
  position: relative;
  width:50vw;
}

.filter-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--col-black);
}
.filter-item:last-child::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 0;
  background-color: var(--col-black);
}

.filter-select {
  padding: var(--box-pad-10);
  font-size: var(--type-30);
  cursor:pointer;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}


.filter-select::after {
  content: '\2193'; /* Down arrow character */
  position: absolute;
  top: 50%; /* Position the arrow vertically in the middle */
  right: var(--mar-20); /* Adjust the distance from the right edge */
  transform: translateY(-50%); /* Center the arrow vertically */
}

.filter-select.active {
  background-color: var(--col-blue);
  color: var(--col-white);
}
.filter-select.active::after {
  content: '\2191'; /* Down arrow character */
}

.filter-options {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width:calc(50vw - 9.5px);
  font-size: var(--type-30);
  background-color: var(--col-white);
  z-index: 1;
  box-shadow: 0 0 0 2px var(--col-black);
}


.filter-options.hidden {
  display:none;
}

.filter-option {
  padding: var(--box-pad-10);
  background-color: var(--white);
  cursor:pointer;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
  border-bottom: 2px solid var(--col-black)
}

.filter-option:last-child {
  border: none;
}

.filter-option.active, .filter-option:hover {
  background-color: var(--col-blue);
  color: var(--col-white);
}


.filter-item:last-child .filter-options {
  border-right: none; /* Remove border from the last .filter-options */
}


/* EVENT CARDS */
.card-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
  grid-template-columns: repeat(4, 1fr); /* 2 items per row on screens between 460px and 767px */
  grid-gap: 0; /* No gap between grid items */
}

.card-item {
  border-bottom: 2px solid var(--col-black); /* Horizontal border between items */
  border-right: 2px solid var(--col-black); /* Vertical border between items */
}

.card-item img {
  max-width: 100%; /* Ensure image does not exceed its container's width */
  width:100%;

  display: block; /* Ensures the image does not have extra space beneath it */
  overflow:hidden;
  aspect-ratio: 16 / 9;
}


/* Adjust border for last item in each row */
.card-item:nth-child(4n) {
  /*border-right: none; /* Remove right border for last item in each row */
}

/* Responsive layout adjustments */
@media (max-width: 1190px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row on screens between 460px and 767px */
  }

  /* Adjust border for last item in each row */
  .card-item:nth-child(2n) {
    border-right: none; /* Remove right border for last item in each row */
  }

}


.card-content h4 {
  margin-bottom: var(--mar-20);
  font-size: var(--type-30) !important;
  max-height:110px;
  overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 3; /* Number of lines before ellipsis */
   -webkit-box-orient: vertical;
   margin: 0;
}

.card-content {
  display:flex;
  flex-direction:column;
  padding: var(--box-pad-even-15);
}

.card-content p {
  font-size: var(--type-15);
}
.card-content .description {
  overflow: hidden;
   display: -webkit-box;
   -webkit-line-clamp: 3; /* Number of lines before ellipsis */
   -webkit-box-orient: vertical;
   margin: 0;
   line-height: 1.5em;
   font-size: var(--type-15) !important;
   margin-bottom: var(--type-15);
}

.card-content .date {
  font-size: var(--type-15) !important;
  font-weight:700;
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 item per row on screens below 460px */
  }

  /* Remove right border for all items in single column layout */
  .card-item {
    border-right: none;
  }

  .card-content .description {
    line-height:1.15em;
  }


}

@media (max-width: 1024px) {

.filter {
  width: calc(100vw);
}

.filter-options {
  width: calc(50vw - 2px);
}



}


.hidden-box {
  display:none !important;
}

/* TAGS */

.tags {
  display:flex;
  flex-direction: row;
  padding-top: var(--mar-10);
  padding-bottom: var(--mar-20);
  flex-wrap: wrap;
  gap:10px;
  align-items: center;
  align-content: center;
}

.tags p {
  margin:0;
  padding:0;
}

.tag {
  display:flex;
  border-radius: var(--mar-40);
  padding: 5px 10px;
  border: 1px solid var(--col-black);
  background-color: var(--col-white);
  color: var(--col-black);
  font-size: 12px;
  align-self: flex-start;
}

.tag.yellow {
  background-color: var(--col-yellow);
}

/*BUTTON */
.btn {
  display:flex;
  border-radius: var(--mar-40);
  padding: 10px 15px;
  font-size: var(--type-15);
  align-self: flex-start;
}

.btn.primary {
  background-color: var(--col-blue);
  color: var(--col-white);
}

.btn.secondary {
  background-color: var(--col-black);
  color: var(--col-white);
}

.btn.secondary.reverse {
  background-color: var(--col-white);
  color: var(--col-black);
}



.btn.tertiary {
  background-color: var(--col-black);
  color: var(--col-yellow);
  border: 1px solid var(--col-yellow);
}

.btn.tertiary.reverse {
  background-color: var(--col-yellow);
  color: var(--col-black);

}


.horizontally {
  display:flex;
  flex-direction: row;
  padding-top: var(--mar-10);
  padding-bottom: var(--mar-20);
  flex-wrap: wrap;
  gap:10px;
  align-items: center;
}

.horizontally .tags {
  padding:0 !important;
}

.horizontally p {
  margin:0;
  padding:0;
}


/* EVENT  */

.eventWrapper {
  display:flex;
  flex-direction:row;
}

.eventImage, .eventImage img {
  width:50vw;
}

.eventImage img {
      height:auto;
}

.eventContent {
  width:50vw;
  border:none;
  display: flex;
  flex-direction: column;
}

.eventContent *:first-child {
  margin-top:0 !important;
}

.eventImage.small {
  display:none;
}

.eventImage.large {
  display:flex;
}

.eventContent .support {
  height:100%;
}

@media (max-width: 640px) {

  .eventWrapper {
    flex-direction:column;
  }
  .eventImage.small {
    display:flex;
  }

  .eventImage.large {
    display:none;
  }

  .eventImage {
    width:100vw;
  }

  .eventImage img {
    width:100%;
  }

  .eventContent {
    width:inherit;
  }

  .horizontally {
    display:flex;
    flex-direction: column;
  }



}



/* --- FORMS -- */

#addEvent {
  margin-top: var(--type-120)
}

form {
 display:flex;
 flex-direction: column;
 gap:40px;
}

.input_label_group {
 display:flex;
 flex-direction: column;
 gap:10px;
}


.input_label_group_hor {
 display:flex;
 flex-direction: row;
 gap:10px;
}



input, select, textarea {
  font-size: var(--type-20);
  padding: var(--box-pad-20);
  border: 1px solid var(--col-black);
  background-color: var(--col-white);
  font-family: var(--s57-reg);
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 15px);
  background-position-y: calc(100% - 20px);
  padding-right: 4rem;
  display:flex;
}

label {
  font-size: var(--type-15);
}


.input_label_group_hor label a {
  text-decoration: underline !important;
}










/* --- ANIMATIONS -- */

/* MARQUEE */

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.marquee-container {
  overflow: hidden;
  cursor:default;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard syntax */
}

.marquee-content {
  width:100000px;
  padding: var(--mar-20);
  border-bottom: 2px solid var(--col-black);
}

.marquee-content ul {
  display: inline-flex; /* Use flexbox to ensure items stay in a single line */
  padding: 0;
  margin: 0;
  animation: marquee 800s linear infinite; /* Adjust the duration as needed */
  gap: 20px;
  white-space: nowrap; /* Prevent items from wrapping to the next line */
}

.marquee-content li {
  font-size: var(--type-60);
  font-feature-settings: 'ss18' on
}

.marquee-content li::before {
  content:'\2192';
  padding-right:20px;
  color: var(--col-blue);
}


#Live {
    margin-left: var(--mar-25);
    position: relative;
    animation: blink-animation 1s infinite alternate cubic-bezier(0.25, 0.1, 0.25, 1);
}

#Live::before {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    left: calc(-1 * var(--mar-25));
    top: 50%;
    transform: translateY(-50%);
}


@media (max-width: 640px) {
  #Live::before {
      content: "";
      display: block;
      width: 15px;
      height: 15px;
      background-color: red;
      border-radius: 50%;
      position: absolute;
      left: calc(-1.5 * var(--mar-25));
      top: 50%;
      transform: translateY(-50%);
  }

}



@keyframes blink-animation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}



.grid-2 {
  grid-template-columns: repeat(2, 1fr);
  display:grid;
  grid-gap: 40px;
  row-gap: 40px;
  align-items: stretch;
  justify-content: space-between;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(1, 1fr);
    display:grid;
    grid-gap: 40px;
    row-gap: 40px;
    align-items: stretch;
    justify-content: space-between;
  }

}

.logo-grid img {
  height:auto;
  width:240px;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-video iframe, .responsive-video object {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 100%;
}
