@font-face {
  font-family: "Roboto";
  src: local("Roboto Regular"), url("../fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: normal;
}

@font-face {
  font-family: "Roboto";
  src: local("Roboto Light"), url("../fonts/Roboto-Light.woff2") format("woff2");
  font-weight: 300;
}

@font-face {
  font-family: "Roboto";
  src: local("Roboto Bold"), url("../fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: bold;
}

@font-face {
  font-family: "Roboto Serif";
  src: local("Roboto Serif Medium"), url("../fonts/RobotoSerif-Medium.woff2") format("woff2");
  font-weight: medium;
}

:root {
  --zeitleiste-border-width: 20px;
  --zeitleiste-border-color-1: #827A75;
  --zeitleiste-border-color-2: #703839;
  --zeitleiste-border-color-text: #A6A6A6;
  --zeitleiste-border-radius: 200px;
  --zeitleiste-border-radius-mobile: 100px;
}

* {
  box-sizing: border-box;
}

#main div#content-wrap {
  width: 100%;
  max-width: 100%;
}

header.page-header {display: none}


body:has(.zeitleiste):after {
  content: "";
  bottom: 0;
  position: fixed;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
}

footer {
  z-index: 1;
}

.elementor-widget-zeitleiste {
  overflow: hidden;
}

header.zeitleiste {
  text-align: center;
}

header.zeitleiste .content {
  position: relative;
  display: inline-block;
  background-color: var(--zeitleiste-border-color-1);
  padding-bottom: var(--zeitleiste-border-width);
  clip-path: polygon(0px 0px, 0px 100%, 100% calc(100% - 60px), 100% 0);
}

header.zeitleiste img {
  width: 100%;
  clip-path: polygon(0px 0px, 0px 100%, 100% calc(100% - 60px), 100% 0);
}

header.zeitleiste h1 {
  width: 100%;
  position: absolute;
  top: 100px;
  text-align: center;
  color: var(--zeitleiste-border-color-2);
  font-size: 60px !important;
  line-height: 1 !important;
  margin: 0;
  text-transform: initial;
}


header.zeitleiste h1 small {
  font-weight: 300;
  font-size: 18px  !important;
  line-height: 1.2;
  display: block;
  text-transform: initial;
}

header.zeitleiste h1 span {
  font-weight: 300;
}

.timeline {
  line-height: 1.2;
  max-width: 1190px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--zeitleiste-border-color-2);
  font-size: 15px  !important;;
  margin-top: 100px;
  margin-bottom: 200px;
  padding: 0 10px;
}

.timeline_item {
  opacity: 0;
  position: relative;
  transition: 1s opacity;
  margin-top: calc(-1 * var(--zeitleiste-border-width));
}

.elementor-editor-active .timeline_item {
  opacity: 1 !important;
  transition: 0s;
}

.timeline_item.active {
  opacity: 1;
}

.timeline_item .content {
  padding: 40px 132px;
  display: flex;
  gap: 0 185px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.timeline_item .content .year {
  color: var(--zeitleiste-border-color-1);
  font-size: 60px;
  font-family: Roboto Serif;
  font-weight: 500;
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
  transition: all .8s;
  transition-delay: 0.25s ease-out;
  word-break: normal;
}

.timeline_item.active .content .year,
.elementor-editor-active .timeline_item .content .year {
  -webkit-clip-path: inset(0) !important;
  clip-path: inset(0) !important;
}

@keyframes t {
  to {
    background-size: 100% 100%
  }
}

.timeline_item.active .content .year {
  opacity: 1;
}

.elementor-editor-active .timeline_item .content .year {
  opacity: 1 !important;
}

.timeline_item .content .info {
  position: relative;
}

.timeline_item .content .newBox {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
  transition: all 1.5s ease-out;
  transition-delay: 0.25s;
}

.timeline_item.active .content .newBox {
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}

.elementor-editor-active .timeline_item .content .newBox {
  -webkit-clip-path: inset(0) !important;
  clip-path: inset(0) !important;
}

.timeline_item .content .info .headline,
.timeline_item .content .info .text {
  visibility: hidden;
  font-family: Roboto;
}

.elementor-editor-active .timeline_item .content .info .headline,
.elementor-editor-active .timeline_item .content .info .text {
  visibility: visible;
}

.timeline_item .content .info:before {
  content: "";
  position: absolute;
  left: -75px;
  height: 100%;
  border-left: 2px solid var(--zeitleiste-border-color-1);
}

.timeline_item .content .headline,
.timeline_item .content .newHeadline {
  font-size: 30px;
  font-family: Roboto;
  font-weight: bold;
  cursor: default;
  margin-bottom: 10px;
}

.timeline_item .content .headline:after,
.timeline_item .content .newHeadline:after {
  margin-left: 10px;
  top: -10px;
  position: relative;
  white-space: nowrap;
  content: url('data:image/svg+xml,<svg width="15" height="15" fill="%23703839" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 488.484 488.484"><path d="M244.236.002C109.562.002 0 109.565 0 244.238c0 134.679 109.563 244.244 244.236 244.244 134.684 0 244.249-109.564 244.249-244.244C488.484 109.566 378.92.002 244.236.002zm0 413.617c-93.4 0-169.38-75.979-169.38-169.379 0-93.396 75.979-169.375 169.38-169.375s169.391 75.979 169.391 169.375c0 93.401-75.99 169.379-169.391 169.379z"/><path d="M244.236 206.816c-14.757 0-26.619 11.962-26.619 26.73v118.709c0 14.769 11.862 26.735 26.619 26.735 14.769 0 26.62-11.967 26.62-26.735V233.546c-.001-14.768-11.851-26.73-26.62-26.73zm0-98.923c-19.949 0-36.102 16.158-36.102 36.091 0 19.934 16.152 36.092 36.102 36.092 19.929 0 36.081-16.158 36.081-36.092-.001-19.933-16.152-36.091-36.081-36.091z" /></svg>');
}

.timeline_item .content .newText {
  overflow: hidden;
  cursor: default;
}

.timeline_item .content .newText,
.timeline_item .content .newText a {
  color: var(--zeitleiste-border-color-text);
}

.timeline_item:nth-of-type(odd) .left_cap {
  display: none;
}

.timeline_item:nth-of-type(even) .right_cap {
  display: none;
}

.timeline_item:nth-of-type(1) {
  --shape: calc(50% + 100px) -20px, calc(50% + 100px) 0px, 50% 0px, 50% -20px;
  --s: -20px;
  /* Control the space */
  padding: calc(-1*var(--s)) 0;
  /* the inverted shape */
  clip-path: polygon(evenodd, var(--s) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) var(--s), var(--shape)) content-box;
}

.cap {
  top: 0;
  height: 100%;
  border-radius: var(--zeitleiste-border-radius);
  border: var(--zeitleiste-border-width) solid var(--zeitleiste-border-color-1);
  position: absolute;
  width: 50%;
  pointer-events: none;
  z-index: -2;
}

.left_cap {
  border: var(--zeitleiste-border-width) solid var(--zeitleiste-border-color-2);
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.timeline_item_start {
  position: absolute;
  z-index: -1;
  opacity: 0;
  transition: 0.5s opacity ease-out;
  width: 100px;
  height: 400px;
  transform: translateY(-100%);
  left: calc(50% - 0px);
}

.timeline_item_start.active,
.elementor-editor-active .timeline_item_start {
  opacity: 1;
}

.timeline_item_start .left_cap {
  border: var(--zeitleiste-border-width) solid var(--zeitleiste-border-color-1);
  border-top: none;
  width: 100px;
  height: 400px;
  border-radius: 100px;
  background-color: #fff;
}

.right_cap {
  right: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
}

.newBox {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}

.info:hover .timelineWrapper {
  grid-template-rows: 1fr;
}

.timelineWrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease-out;
}

.timelineWrapper.is-open {
  grid-template-rows: 1fr;
}


@media (max-width: 768px) {
  header.zeitleiste {
    overflow: hidden;
  }

  header.zeitleiste img {
    width: 120%;
  }

  header.zeitleiste h1 {
    top: 20px;
    font-size: 32px !important;
  }

  .timeline {
    padding: 0 15px;
  }

  .timeline_item .content {
    padding: 40px 50px 40px;
    flex-direction: column;
    gap: 0;
    align-items: end;
  }

  .timeline_item .content .year {
    font-size: 55px  !important;;
  }

  .timeline_item:nth-child(odd) .content .year {
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }

  .timeline_item .content .headline,
  .timeline_item .content .newHeadline {
    font-size: 25px;
  }

  .cap {
    border-radius: var(--zeitleiste-border-radius-mobile);
  }

  .timeline_item:nth-child(even) .content {
    padding-left: 20px;
    align-items: start;
  }

  .timeline_item:nth-child(odd) .content {
    padding-right: 20px;
  }

  .timeline_item:nth-child(odd) .content .info .text,
  .timeline_item:nth-child(odd) .content .info .headline {
    text-align: right;
  }

  .timeline_item .content .info::before {
    content: none;
  }

  .timeline_item .content .info .headline, .timeline_item .content .info .text {
    visibility: visible;
  }

  .newBox {
    display: none;
  }

  .timeline_item .content .headline:after,
  .timeline_item .content .newHeadline:after {
    content: none;
  }
}

@media (max-width: 430px) {
  .timeline_item_start {
    width: 60px;
  }

  .timeline_item_start .left_cap {
    width: 60px;
    border-radius: 100px;
  }

  .timeline_item:nth-of-type(1) {
    --shape: calc(50% + 60px) -20px, calc(50% + 60px) 0px, 50% 0px, 50% -20px;
    --s: -20px;
    /* Control the space */
    padding: calc(-1*var(--s)) 0;
    /* the inverted shape */
    clip-path: polygon(evenodd, var(--s) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) var(--s), var(--shape)) content-box;
  }
}
