/*
Theme Name: ECNM Conference
Theme URI: https://github.com/elementor/hello-theme/
Description: websplash | Agentur für Internet und Mediendesign
Author: websplash
Author URI: https://websplash.de/
Template: hello-elementor
Version: 1.4
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.elementor-widget-text-editor p:last-of-type,
.elementor-widget-theme-post-content p:last-of-type {
  /* to remove margin of last p in text widget */
  margin-bottom: 0;
}

.websplash input {
  /* to hide weird shadow on some iOS input fields */
  outline: 0 !important;
}

.websplash .elementor-field-option input[type="checkbox"],
.websplash .elementor-field-option input[type="radio"] {
  /* align fields middle */
  vertical-align: middle;
}

input[type="date"] {
  /* iOS datefield fix */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.websplash .elementor-field-option label {
  /* pointer cursor for labels of options (checkbox etc.) */
  cursor: pointer;
}

.websplash input[type="checkbox"] {
  /* fix iOS Bug if label is too long not to shrink the input */
  min-width: 20px;
}

.websplash .elementor-field-group .elementor-field-textual:focus {
  /* to not focus fields with border on hover */
  box-shadow: none;
  outline: 0;
}

/* hover effect for icons in buttons */
.elementor-widget-button a.elementor-button .elementor-button-icon {
  -webkit-transition: left 0.2s ease-in;
  -moz-transition: left 0.2s ease-in;
  -o-transition: left 0.2s ease-in;
  -ms-transition: left 0.2s ease-in;
  transition: left 0.2s ease-in;
  left: 0;
  position: relative;
}
.elementor-widget-button a.elementor-button:hover .elementor-align-icon-right {
  left: 10px;
}

/* align the acceptence form checkbox in a way, that it stay left, even the label text is multiple lines long */
.elementor-field-type-acceptance .elementor-field-option {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.elementor-field-type-acceptance .elementor-field-option input {
  top: 7px;
  position: relative;
}
.elementor-field-type-acceptance .elementor-field-option label {
  padding-left: 10px;
}

.elementor-select-wrapper select:focus {
  box-shadow: none;
}

.elementor-select-wrapper select option {
  color: var(--e-global-color-text);
}

/* hide recaptcha badge if active */
.grecaptcha-badge {
  visibility: hidden;
}

.elementor-video {
  /* fix height issue, after video has been unblocked by borlabs cookie banner */
  height: 100%;
}

/* style pw form on page pw protection at least a little bit nicer per default */
body.elementor-page form.post-password-form {
  display: flex;
  padding: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100vh;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #eee;
}

/*ACCORDION*/

/*alternating row colors*/
.encm-accordion .e-n-accordion-item:nth-child(odd) .e-n-accordion-item-title {
  background-color: var(--e-global-color-3fef1d1);
}
.encm-accordion .e-n-accordion-item:nth-child(even) .e-n-accordion-item-title {
  background-color: var(--e-global-color-4b1816c);
}
/*BORDERS*/
.encm-accordion .e-n-accordion-item:first-of-type .e-n-accordion-item-title {
  border-radius: 10px 10px 0px 0px;
}
.encm-accordion .e-n-accordion-item:last-of-type .e-n-accordion-item-title {
  border-radius: 0px 0px 10px 10px;
}
.encm-accordion .e-n-accordion-item:last-of-type[open] .e-n-accordion-item-title {
  border-radius: 0px 0px 0px 0px;
}
.encm-accordion .e-n-accordion-item:last-of-type[open] div.elementor-element {
  border-radius: 0px 0px 10px 10px;
}
/*BG COLOR OPEN ITEM*/
.encm-accordion .e-n-accordion-item[open] div.elementor-element {
  background-color: var(--e-global-color-8866f9a);
}

/*SVG*/
.svg-box:hover .anicon {
  margin-top: -76px !important;
  width: 136px !important;
  height: 136px !important;
  transition: all 0.3s ease-in-out;
}
.svg-box:hover .svg-box-title .elementor-heading-title {
  color: var(--e-global-color-accent) !important;
}
.svg-box:hover .svg-box-content {
  color: var(--e-global-color-text) !important;
}

/* Mobile: Hover-Effekt während der Animation */
.mobile-hover-active .svg-box-title .elementor-heading-title {
    color: var(--e-global-color-accent) !important;
    transition: color 0.3s ease;
}
.mobile-hover-active .svg-box-content {
    color: var(--e-global-color-text) !important;
    transition: color 0.3s ease;
}

/*TIMELINE*/
.timeline-wrapper {
  overflow: hidden !important;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  width: 100%;
  position: relative;
}
.timeline-wrapper.grabbing {
  cursor: grabbing;
}
.elementor-element.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--e-global-color-accent);
  z-index: 1;
  pointer-events: none;
}
.timeline-wrapper > .swiper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  transform: translateX(0);
  will-change: transform;
  width: auto !important;
  margin-left: 0;
  overflow: visible;
}
.timeline-wrapper .slot {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  color: #ffffff;
  min-width: 250px !important;
  max-width: 350px;
  hyphens: auto;
  -webkit-user-select: none;
  user-select: none;
  flex: 0 0 auto !important;
  user-select: none;
  -webkit-user-select: none;
  padding: 0 !important;
  margin-top: -8px;
  z-index: 2;
  gap: 0 !important;
  --flex-wrap-mobile: nowrap;
}
.timeline-wrapper .slot_time {
  color: var(--e-global-color-secondary);
  background: transparent !important;
  margin-bottom: 10px;
  position: relative;
  text-align: center;
  width: 100%;
  flex-direction: column;
  gap: 0 !important;
  display: flex;
  padding: 0 !important;
  align-items: center;
}
.timeline-wrapper .slot_time::before {
  --dot-size: 15px;
  --shadow-size: 10px;
  content: "";
  position: relative;
  width: var(--dot-size);
  height: var(--dot-size);
  z-index: 5;
  background: var(--e-global-color-accent);
  border-radius: 50%;
  box-shadow: 0px 0px var(--shadow-size) 0px var(--e-global-color-accent);
  display: block;
}
.timeline-wrapper .slot_content {
  color: var(--e-global-color-secondary);
  background: var(--e-global-color-accent);
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px !important;
  flex-direction: column !important;
  height: 100%;
  justify-content: center;
}
.timeline-wrapper .pause .slot_content {
  background-color: #005e54 !important;
}
.timeline-wrapper .pause .slot_content .elementor-widget-text-editor {
  color: #ffffff !important;
}
.timeline-wrapper .slot_content:hover {
  background-color: #dbd758 !important;
}
.timeline-wrapper .elementor-widget-text-editor {
  font-size: 1rem;
  line-height: 1.1;
  font-weight: normal !important;
  text-align: center;
}
@media (max-width: 767px) {
  .timelinetabs .e-n-tab-title:not([aria-selected="true"]) {
    border-radius: 10px;
  }
  .timelinetabs .e-n-tabs-content .e-active {
    border-radius: 0px 0px 10px 10px;
  }

  /* Wrapper behält overflow hidden, aber für vertikales Scrolling */
  .timeline-wrapper {
    height: 400px; /* Feste Höhe für vertikales Swipen - anpassen! */
    max-height: 60vh; /* Oder relative Höhe */
  }

  /* Swiper-Container vertikal ausrichten */
  .timeline-wrapper > .swiper {
    flex-direction: column !important; /* Von row zu column */
    height: auto !important;
    width: 100% !important; /* Volle Breite */
    transform: translateY(0); /* Vertikale Transformation */
  }

  /* Slots untereinander */
  .timeline-wrapper .slot {
    flex-direction: column !important;
    min-width: 100% !important; /* Volle Breite */
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-left: 20px;
    margin-bottom: 25px; /* Abstand zwischen Slots */
  }

  /* Linie anpassen oder ausblenden */
  .elementor-element.timeline-wrapper::before {
    display: none; /* Horizontale Linie ausblenden */
  }

  /* Optional: Vertikale Linie für mobile */
  .timeline-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 25px;
    width: 2px;
    height: 100%;
    background: var(--e-global-color-accent);
    z-index: 1;
    pointer-events: none;
    transform: translateX(-50%);
  }

  /* Punkte an der vertikalen Linie ausrichten */
  .timeline-wrapper .slot_time::before {
    left: -12px !important;
    transform: translateX(-100%) !important;
    top: -5px; /* Position anpassen */
  }

  /* Zeitstempel positionieren */
  .timeline-wrapper .slot_time {
    flex-direction: row !important;
    padding-left: 25px !important;
    padding-top: 25px !important;
    margin-bottom: 0px;
  }

  /* Content-Container */
  .timeline-wrapper .slot_content {
    width: 75% !important; /* Etwas schmaler als volle Breite */
    margin: 0 auto; /* Zentriert */
  }
}
