/*
 * Ilmtaler Slider Video 1.8.3
 * Saubere Mischung aus Switch- und Serverrack-Wasserzeichen.
 */
.ilmtaler-switch-video-host {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  background: #f8fafc;
}

.ilmtaler-switch-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f8fafc;
}

.ilmtaler-switch-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition:
    opacity 3.2s ease-in-out,
    filter 3.2s ease-in-out,
    transform 3.2s ease-in-out;
  will-change: opacity;
}

.ilmtaler-switch-bg--primary {
  opacity: .66;
  filter: grayscale(0) saturate(1.12) brightness(.96) contrast(1.08);
}

.ilmtaler-switch-bg--secondary {
  opacity: 0;
  filter: saturate(.72) brightness(1.07) contrast(.91);
  transform: scale(1.004);
}

.ilmtaler-switch-video-layer.is-secondary .ilmtaler-switch-bg--primary {
  opacity: .015;
}

.ilmtaler-switch-video-layer.is-secondary .ilmtaler-switch-bg--secondary {
  opacity: .78;
}

/* Foreground remains untouched and interactive. */
.ilmtaler-switch-video-host > :not(.ilmtaler-switch-video-layer) {
  position: relative;
  z-index: 2;
}

.ilmtaler-switch-video-host .il-home-hero-slide,
.ilmtaler-switch-video-host .il-home-slider__slide,
.ilmtaler-switch-video-host .il-hero-slide,
.ilmtaler-switch-video-host [data-slide] {
  background: transparent !important;
}

/* Stable readability layer: stronger on the left text area and neutral in the center. */
.ilmtaler-switch-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .80;
  transition: opacity 3.2s ease-in-out;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.93) 0%,
      rgba(255,255,255,.86) 30%,
      rgba(255,255,255,.60) 52%,
      rgba(255,255,255,.46) 74%,
      rgba(255,255,255,.54) 100%),
    linear-gradient(180deg, rgba(247,249,252,.05), rgba(247,249,252,.10));
}

.ilmtaler-switch-video-layer.is-secondary .ilmtaler-switch-veil {
  opacity: .48;
}

.ilmtaler-switch-leds {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 2.8s ease-in-out;
}

.ilmtaler-switch-video-layer.is-secondary .ilmtaler-switch-leds {
  opacity: .02;
}

.ilmtaler-switch-led {
  --led-color: 132, 255, 84;
  position: absolute;
  width: clamp(3px, .28vw, 6px);
  height: clamp(3px, .28vw, 6px);
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgb(var(--led-color));
  opacity: .28;
  transform: translateZ(0) scale(.82);
  box-shadow:
    0 0 5px rgba(var(--led-color), .65),
    0 0 14px rgba(var(--led-color), .42),
    0 0 26px rgba(var(--led-color), .20);
  animation: ilmtaler-led-pulse var(--led-duration, 8s) ease-in-out var(--led-delay, 0s) infinite;
  will-change: opacity, transform, box-shadow;
}

.ilmtaler-switch-led.is-blue {
  --led-color: 89, 176, 255;
}

@keyframes ilmtaler-led-pulse {
  0%, 100% {
    opacity: .18;
    transform: translateZ(0) scale(.76);
  }
  45% {
    opacity: .78;
    transform: translateZ(0) scale(1.12);
  }
  62% {
    opacity: .44;
    transform: translateZ(0) scale(.94);
  }
}

@media (max-width: 900px) {
  .ilmtaler-switch-bg--primary {
    opacity: .58;
  }

  .ilmtaler-switch-video-layer.is-secondary .ilmtaler-switch-bg--secondary {
    opacity: .72;
  }

  .ilmtaler-switch-veil {
    background: rgba(255,255,255,.87);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ilmtaler-switch-bg,
  .ilmtaler-switch-leds {
    transition: none !important;
  }

  .ilmtaler-switch-led {
    animation: none !important;
    opacity: .35;
  }
}


/* Version 1.8.3 – fester „Nach oben“-Button auf allen öffentlichen Seiten. */
.ilmtaler-back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 950;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(16, 1, 94, .10);
  border-radius: 17px;
  background: #83c629;
  color: #10015e;
  font: inherit;
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 38px rgba(16, 1, 94, .20);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(.94);
  transition:
    opacity .22s ease,
    visibility .22s ease,
    transform .22s ease,
    background-color .18s ease,
    box-shadow .18s ease;
}

.ilmtaler-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ilmtaler-back-to-top:hover {
  background: #94d63d;
  color: #10015e;
  transform: translateY(-3px) scale(1);
  box-shadow: 0 20px 44px rgba(16, 1, 94, .25);
}

.ilmtaler-back-to-top:focus-visible {
  outline: 3px solid rgba(16, 1, 94, .35);
  outline-offset: 4px;
}

.ilmtaler-back-to-top span {
  display: block;
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .ilmtaler-back-to-top {
    right: 17px;
    bottom: 17px;
    width: 49px;
    height: 49px;
    border-radius: 15px;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ilmtaler-back-to-top {
    transition: none !important;
  }
}
