/*!
 * Intro-Slideshow Trauernetzwerk Stuttgart
 * -------------------------------------------------------------------------
 * Ersetzt vegas.min.css. Nachgebaut sind nur die Teile, die das alte Intro
 * tatsaechlich benutzt hat: formatfuellende Slides mit "cover", zentriert,
 * Crossfade und die 2px-Fortschrittsleiste am unteren Rand
 * (Vegas-Default "timer: true").
 */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  overflow: hidden;
  background: #fff;
}

.intro-link {
  display: block;
  text-decoration: none;
}

.intro-stage {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Entspricht .vegas-slide: absolut, formatfuellend, zentriert */
.intro-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1000ms ease;
  will-change: opacity;
}

.intro-slide.is-visible {
  opacity: 1;
}

/* Entspricht .vegas-timer / .vegas-timer-progress */
.intro-timer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.intro-timer-progress {
  width: 0;
  height: 100%;
  background: #fff;
}

/* Hinweis zum Ueberspringen: standardmaessig nur fuer Tastatur und
 * Screenreader, damit die Optik dem Original entspricht. */
.intro-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-link:focus-visible .intro-skip,
.intro-link:focus .intro-skip {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 0.9rem;
  clip: auto;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 400 15px/1.2 "Open Sans", Arial, sans-serif;
}

/* Soll der Hinweis dauerhaft sichtbar sein (empfehlenswert, damit Besucher
 * merken, dass sie das Intro ueberspringen koennen), diesen Block aktivieren:
 *
 * .intro-skip {
 *   position: absolute;
 *   right: 1.5rem;
 *   bottom: 1.5rem;
 *   left: auto;
 *   width: auto;
 *   height: auto;
 *   margin: 0;
 *   padding: 0.5rem 0.9rem;
 *   clip: auto;
 *   border-radius: 2px;
 *   background: rgba(0, 0, 0, 0.45);
 *   color: #fff;
 *   font: 400 15px/1.2 "Open Sans", Arial, sans-serif;
 * }
 */

@media (prefers-reduced-motion: reduce) {
  .intro-slide {
    transition-duration: 1ms;
  }
}
