/* Home (Startseite) – Intro-Fade + Draggable Slider */

/* Hilfsklassen zum sofortigen Überspringen des Intros */
#intro-wrapper.no-animation,
#intro-wrapper.no-animation #intro-logo,
.main-header .logo.no-animation {
  transition: none !important;
  opacity: 1 !important;
}

#intro-wrapper.no-animation.finished {
  display: none !important;
}

body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Header */
.main-header {
  pointer-events: auto;
  background: transparent;
  border-bottom-color: transparent;
  z-index: 1001;
}

.main-header .logo {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.main-header .logo.visible {
  opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* INTRO OVERLAY                                                              */
/* -------------------------------------------------------------------------- */

#intro-wrapper {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

#intro-bg {
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  z-index: 1;
}

#intro-logo {
  position: relative;
  z-index: 2;
  width: 450px; 
  max-width: 80vw;
  height: auto;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.8s ease-in-out, transform 1.2s ease-out;
}

#intro-wrapper.finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#intro-wrapper.finished #intro-logo {
  opacity: 0;
  transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* FULLSCREEN SLIDER                                                          */
/* -------------------------------------------------------------------------- */

#hero-slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
  cursor: grab;
}

#hero-slider:active {
  cursor: grabbing;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #fff;
  pointer-events: none;
  user-select: none;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  -webkit-user-drag: none;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.hero-slide-text {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.active .hero-slide-text {
  opacity: 1;
  transform: translateY(0);
}

.slide-title {
  font-size: clamp(1.5rem, 5vw, 3rem); 
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  opacity: 0.85;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slider-pagination {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: rgba(255,255,255,0.9);
}