/* =================================
   LAYOUT
   ================================= */
.page {
  min-height: 100%;
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: var(--pagewidth);
}


.lang-change {
  padding-top: 19px;
  display: flex;
  gap: 20px;
  letter-spacing: 0.1em;
}

.lang-change a:hover {
  text-decoration: underline;
  text-underline-offset: 0.5em;
  text-decoration-thickness: 1px;
}

.main-content {
}

.main-content:after, .platocontent:after {
  content: "";
  display: block;
  clear: both;
}

footer {
  border-top: 1px solid #fff;
  margin-top: 40px;
}
header {
  margin-bottom: 40px;
}

.logo h1 {
  margin: 7px 0;padding: 0;
}

.foot {
  display: flex;
  justify-content: space-between;
}

.social {
  display: flex;
  gap: 18px;
  padding-top: 30px;

}

.footerlinks {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

.social img {
  width: auto;
  height: 28px;

}

/* Holy Grail */
html, body {
  height: 100%;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.main-content {
  flex-grow: 1;
}

header, .main-content, footer {
  flex-shrink: 0;
}

/* Holy Grail */


/* BLUE BLOCK CSS */
.fullwidth-bg {
  position: relative;
  /*margin-top: 1px;*/
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.fullwidth-bg section:last-child .p-block {
  display: none;
}

.fullwidth-bg .article-div {
  /*padding: 60px 0;*/
}

.fullwidth-bg .article-div:after {
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(229, 229, 229, 0.53);
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  top: 0;
  z-index: 0;
}

.fullwidth-bg.invert *, .fullwidth-bg.invert a {
  color: #fff;
}

.fullwidth-bg.fwbg-1 .article-div:after {
  background: rgba(0, 0, 0, 0.53);
}

.fullwidth-bg.fwbg-2 .article-div:after {
  background: rgb(14, 132, 140);
}

/* CSS CLASS */
/*
.fullwidth-div {
  background: rgba(204, 192, 0, 0.52);
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 30px 0;
}
.win-os .ct-nr-0 .fullwidth-div {
  width: calc(100vw - 17px);
}
*/
.fullwidth-container {
  background: rgba(204, 192, 0, 0.52);
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 30px 0;
}


/* FULLWIDTH ALTERNATIVE, Achtung bei slide-show ct27*/
.fullwidth-div {
  padding: 20px 0;
}

.fullwidth-div .content-div-inner {
  position: relative;
  z-index: 1;
  padding: 0;
}

.fullwidth-div.fwd-bg:before {
  content: "";
  background: rgba(204, 192, 0, 0.6);
  position: absolute;
  top: 0;
  left: -100vw;
  right: -100vw;
  bottom: 0;
  z-index: 0;
}


/* =================================
   Width Setter Models
   ================================= */

/*
.owsetter {
max-width:80%;
min-width:320px;
margin:0 auto;
}
*/

/* ODER */

/*
.iwsetter {
  max-width: 1200px;
  width: 100%;
  min-width: 320px;
  margin: 0 auto;
}
*/

/*
.col-margin {
  background: #f0ead8;
  padding: 10px 20px;
}

.col-nav nav {
  background: #c6d8f1;
}

.col-nav nav:empty, .col-margin:empty {
  padding: 0 !important;
}
*/


/*
******** ONEPAGE MODEL *************
******** ONEPAGE MODEL *************
******** ONEPAGE MODEL *************
*/
article {
  /*overflow: clip;*/
  max-width: 100%;
}

.sectiondiv {
  padding: 0 0 0 0;
  /*overflow: hidden;
  max-width: 100%;*/
}

/* fullwidth - bg help! */
.sectiondiv {
  position: relative;
  z-index: 1;
}

.iwsetter, .fullwidth-div > div {
  max-width: var(--contentwidth); /* Max Page Size */
  padding: 0 20px; /* GOLBAL 20px sides */
  margin: 0 auto;
}

.fullwidth-div > div {
  padding: 0;
}

/* TOPLINK ICONS FIXED */
.top-linkbox-container {
  position: absolute;
  right: 0;
  overflow: hidden;
}

.top-linkbox-pos {
  position: fixed;
  top: 500px;
  overflow: hidden;
  z-index: 20;
  transform: translateX(-100%);
  pointer-events: none;
  will-change: contents;
}

.top-linkbox {

  pointer-events: auto;
  position: relative;
  width: 200px;
  height: 40px;
  transform: translateX(160px);

  /*variante1 right: calc(-100% + 40px);*/
  /*variante1 width: auto;*/
  transition: transform 0.25s ease-in-out;
  background: #1c82c5 url(/layout/icons_white/close.svg) no-repeat left center / 40px 40px;
  padding-left: 40px;
  margin-bottom: 5px;
  line-height: 42px;
  color: white;
  cursor: pointer;
}

.top-linkbox.active, .top-linkbox:hover {
  transform: translateX(0);
  /*variante1 transform: translateX(calc(-100% + 40px));*/
  transition: transform 0.25s ease-in-out;
  transition-delay: 0.1s;
}

.top-linkbox a {
  display: block;
  color: white;
}

.subpage {
}

.subpage.sp-1 {
}

.subpage.sp-2 {
}

section {
  /*padding: 30px 0;*/
  margin: 30px 0;
}

.alt-pad-b {
  margin-bottom: 0;
  padding-bottom: 0;
}

.alt-pad-t {
  margin-top: 0;
  padding-top: 0;
}

.alt-two .content-wrapper, .two-col {
  -webkit-column-count: 2;
  -webkit-column-gap: 80px;
  -moz-column-count: 2;
  -moz-column-gap: 80px;
  column-count: 2;
  column-gap: 80px;
}

.alt-two .content-wrapper p, .two-col p {
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}

/*
******** 50% FLOAT mit 20 Gutter *************
*/
.subpage.page-grid-1 .article-div > section {
  width: 50%;
  float: left;
}

.subpage.page-grid-1 .article-div > section:nth-child(odd) {
  padding-right: 10px;
}

.subpage.page-grid-1 .article-div > section:nth-child(even) {
  padding-left: 10px;
}

/*
******** 33% FLOAT mit 20 Gutter *************
*/
.subpage.page-grid-2 .article-div > section {
  width: calc(33.3333% - (2 * 20px / 3));
  float: left;
  margin-left: 20px;
}

.subpage.page-grid-2 .article-div > section:nth-child(3n+1) {
  clear: both;
  clear-after: both;
}

.subpage.page-grid-2 .article-div > section:nth-child(3n+1 ) {
  margin-left: 0px;
}

/*
******** 25% FLOAT mit 20 Gutter *************
*/
.subpage.page-grid-3 .article-div > section {
  width: calc(25% - (3 * 20px / 4));
  float: left;
  margin-left: 20px;
}

.subpage.page-grid-3 .article-div > section:nth-child(4n+1) {
  clear: both;
  clear-after: both;
}

.subpage.page-grid-3 .article-div > section:nth-child(4n+1 ) {
  margin-left: 0px;
}

/*
******** 33%/66% FLOAT mit 20 Gutter *************
*/
.subpage.page-grid-4 .article-div > section:nth-child(odd) {
  width: calc(33.3333% - (1 * (20px + 5px) / 2));
  float: left;


}

.subpage.page-grid-4 .article-div > section:nth-child(even) {
  width: calc(66.6666% - (1 * (20px - 5px) / 2));
  float: left;
  margin-left: 20px;

}

.subpage.page-grid-4 .article-div > section:nth-child(2n+1) {
  clear: both;
  clear-after: both;
}


/*
******** 66%/33% FLOAT mit 20 Gutter *************
*/
.subpage.page-grid-5 .article-div > section:nth-child(even) {
  width: calc(33.3333% - (1 * (20px + 5px) / 2));
  float: left;


}

.subpage.page-grid-5 .article-div > section:nth-child(odd) {
  width: calc(66.6666% - (1 * (20px - 5px) / 2));
  float: left;
  margin-left: 20px;

}

.subpage.page-grid-5 .article-div > section:nth-child(2n+1) {
  clear: both;
  clear-after: both;
}


.subpage.page-grid .article-div:after, .subpage.page-grid:after {
  clear: both;
  display: block;
  content: "";
}

.subpage.page-grid .article-div {
  clear: both;
}

.subpage.page-grid .article-div > section > .sectiondiv {
  /*background: #eee url(/layout/test_bullseye.svg) no-repeat center center / auto 100% ;*/
}

.subpage.page-grid .article-div > section > .sectiondiv > .content-block {
  padding: 10px;
  background: rgba(255, 206, 238, 0.13);
}


.column-blocks > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.col-block-1 > div > .co-bl-inn {
  flex-basis: calc(50% - 10px);

}

.col-block-2 > div > .co-bl-inn {
  flex-basis: calc(33.1% - 10px);
}

.col-block-3 > div > .co-bl-inn {
  flex-basis: calc(25% - 10px);
}

.col-block-4 > div > .co-bl-inn:nth-child(1) {
  flex-basis: calc(33.1% - 10px);
}

.col-block-4 > div > .co-bl-inn:nth-child(2) {
  flex-basis: calc(66.666% - 10px);
}

.col-block-5 > div > .co-bl-inn:nth-child(2) {
  flex-basis: calc(33.333% - 10px);
}

.col-block-5 > div > .co-bl-inn:nth-child(1) {
  flex-basis: calc(66.666% - 10px);
}

.col-block-6 > div > .co-bl-inn:nth-child(1) {
  flex-basis: calc(75% - 10px);
}

.col-block-6 > div > .co-bl-inn:nth-child(2) {
  flex-basis: calc(25% - 10px);
}

.col-block-7 > div > .co-bl-inn:nth-child(2) {
  flex-basis: calc(75% - 10px);
}

.col-block-7 > div > .co-bl-inn:nth-child(1) {
  flex-basis: calc(25% - 10px);
}

.co-bl-inn {
  /*border:1px dotted red;*/
}

/*
******** ONEPAGE MODEL *************
******** ONEPAGE MODEL *************
******** ONEPAGE MODEL *************
*/
footer nav {
  display: inline-flex;
  flex-direction: column;
}

.foot {

  padding: 60px 0;
  /*
display: flex;
flex-direction: column;
gap: 30px;
justify-content: center;
align-items: center;
*/
  /*text-align: center;*/

}

.narrow-text {
  max-width: 720px;
}


footer, header {
  background: #111;
}

.daymode-dark * {
  /*filter: invert(100%);*/
}

.daymode-dark {
  background: #1a1a1a;
}

.daymode-dark xheader, .daymode-dark footer {
  background: #111;
}

.daymode-dark .ep-date, .daymode-dark .ep-series {
  color: #fff;
}

header, header *, footer, footer * {
  color: #fff;
}

.social.black {
  display: none;
}




/* ------------------ EVENTS --------------- */


.ep-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(50px, 10vw, 110px);

}


@media (min-width: 640px) {
  .ep-list {
    /*grid-template-columns: 1fr 1fr;*/
  }
}

@media (min-width: 1024px) {
  .ep-list {
    /*grid-template-columns: 1fr 1fr;*/
  }
}

.ep-card {

  border-radius: 6px;
  /*overflow: hidden;*/

  height: 100%;
}

.portrait-layout {
  display: flex;
  gap:40px;
}
.portrait-layout > div {
  width: 55%;
}
.portrait-layout > div:first-child{
  width: 45%;
}

.portrait-layout .ep-body {
  padding-top: 0;
  margin-top: -4px;
}


/* ALL  LINE PREVIEW */
.event-more-link:not(.is-open) .ep-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-more-link:not(.is-open) {
  grid-template-rows: auto;
  opacity: 1;
}

 .event-more-link.is-open .ep-text {
  display: block;
}

/* PORTRAT   LINE PREVIEW */
.portrait-layout .event-more-link:not(.is-open) .ep-text {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portrait-layout .event-more-link:not(.is-open) {
  grid-template-rows: auto;
  opacity: 1;
}

.portrait-layout .event-more-link.is-open .ep-text {
  display: block;
}
/* PORTRAT   LINE PREVIEW */



.ep-card:hover {
  /*box-shadow: 0 6px 18px rgba(0,0,0,.12);*/
  /*transform: translateY(-2px);*/
}

.ep-media img {
  display: block;
  width: 100%;
  height: auto;
}

.ep-body {
  padding: 20px 0px 16px 0px;
}

.ep-date {

  font-size: 1.1em;
  display: inline-block;
  margin-bottom: 10px;
}

.ep-title {
}

.ep-series {
  font-size: 0.9em;
  font-weight: 500;
}


/* Bild-Aspect-Ratio Helper (falls gewünscht, hier 16:9) */
.ep-media.ar-16x9 {
  position: relative;
  padding-top: 56.25%;

}

.ep-media.ar-16x9 > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Abstände zum Seitenumfeld */
.ep-wrap {
  margin: 6px 0 18px 0;
}

/* Letztes Element ohne extra Rand bei 1‑Spalten‑Layout */
.ep-card.last {
  margin-bottom: 0;
}

.ep-music {
  display: flex;
  gap: 1px 12px;
  flex-wrap: wrap;
  margin-left: -6px;
}


.ep-music span {
  position: relative;
  padding: 3px 5px 3px 16px;
  color: #184005;
  font-size: 0.75em;
  font-weight: 500;
  /*text-shadow: 0 0 5px #fff, 0 0 8px #fff;*/
}

.ep-music span:before {
  content: "";
  background-color: #89ff3b;

  width: 100%;
  height: 1.5em;
  position: absolute;
  z-index: -1;
  filter: url(#marker-shape);
  /*mix-blend-mode:multiply;*/
  left: 5px;
  top: 1px;
  transform: rotate(-1deg);
  border: 1px solid #6eff00;
}

.ep-music span:nth-child(odd):before {
  filter: url(#marker-shape-2);
  transform: skewX(-5deg) rotate(-2deg);
}

.daymode-dark .ep-music span:before {
  background-color: #00ffff;
  border: 1px solid #ffffff;
}




.event_image {
  width: 100%;
  height: auto;
}

.event_video {
  width: 100%;
  height: auto;
}


.event-more-link {
  display: grid;
  grid-template-rows: 0fr; /* collapsed */
  transition: grid-template-rows .45s ease-in-out, opacity .45s ease-in-out; /*, margin .45s ease-in-out;*/
  opacity: 0;
  margin-top: 0;

}

/* single inner wrapper is the scroll container we clip */
.event-more-link > .eml-inner {
  overflow: hidden;

}

.event-more-link.is-open {
  grid-template-rows: 1fr; /* expanded */
  opacity: 1;
  /*margin-top: 10px;*/
}

.ep-text {
  margin-bottom: 20px;
}
.ep-text.ep-text-nopad {
  margin-bottom: 0px;
}

.series-inf {

  margin-bottom: 30px;
}

.epd-series-title {
  padding-bottom: 5px;
  font-size: 1.1em;
}

.epd-series-infotext {
  font-size: 0.87em;
}

@media (prefers-reduced-motion: reduce) {
  .event-more-link {
    transition-duration: .45s;
  }
}


.eventdetails {
  /*padding-bottom: 40px;*/
}

.entry-sec {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 680px) {
  .ep-body {
    padding: 14px 0px 16px 0px;
  }
}

@media (max-width: 390px) {
  .ep-date {
    width: 120px;
  }
}

/* ------------------ EVENTS --------------- */











.daymode-dark .social.white {
  display: none;
}

.daymode-dark .social.black {
  display: flex;
}

.lang-change a:hover, footer a:hover {
  color: #fff;
}

/*
.daymode-dark .ep-music span {
  background: #555 !important;
}*/

.daymode-dark header {
  background: #1a1a1a;
}





.cross {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
  margin: 40px 0 20px 0;
}

.cross div {
  position: absolute;
  background: #222;
}

.cross-vertical {
  top: 50%;
  width: 100%;
  height: 0.7px;
  transform: rotate(-4deg);
}

.cross-horizontal {
  top: 50%;
  width: 100%;
  height: 0.7px;
  transform: rotate(4deg);
}

.daymode-dark .cross div {
  background: #fff;
}

.daymode-dark .dm-black {
  display: none;
}
.dm-white {
  display: none;
}
.daymode-dark .dm-white {
  display: block;
}

.share-ic {
  width: clamp(30px, 5vw, 36px);
  height: auto;
}

.ep-share {
  float: right;
  position: relative;
  margin-top:10px;
}