/* ===========================
   Bild-Slider / Carousel (Neon-Glas-Look)
   =========================== */
#slider.neo-box {
  max-width: 700px;
  margin: 32px auto;
  background: linear-gradient(135deg, rgb(47 47 47 / 65%) 60%, rgba(160, 59, 68, 0.18) 100%);
  border-radius: var(--box-radius);
  box-shadow:
    0 4px 24px 0 rgba(20,77,59,0.18),
    0 0 0 1.5px rgba(200,214,229,0.12) inset,
    0 1.5px 24px 0 rgba(160,59,68,0.10) inset;
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 20px 24px;
  border: none; /* Border entfällt, da Neon-Rahmen */
  text-align: center;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px) saturate(1.2);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

#slider.neo-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 30px rgba(20,77,59,0.3),
    0 0 0 2px rgba(200,214,229,0.2) inset,
    0 3px 36px 0 rgba(160,59,68,0.15) inset;
}

/* Neon-Rahmen: animierte Linien oben, unten, links, rechts */
#slider.neo-box::before,
#slider.neo-box::after,
#slider.neo-box > .neon-left,
#slider.neo-box > .neon-right {
  position: absolute;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--primary));
  border-radius: 2px;
  filter: blur(1.5px) brightness(1.3);
  opacity: 0.85;
  animation: neon-move 3s linear infinite alternate;
  content: "";
  z-index: 2;
  pointer-events: none;
}

/* Oben */
#slider.neo-box::before {
  top: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
}

/* Unten */
#slider.neo-box::after {
  bottom: 0; left: 10%; right: 10%; height: 4px;
  animation-name: neon-move-horizontal;
  animation-direction: reverse;
}

/* Links */
#slider.neo-box > .neon-left {
  top: 10%; bottom: 10%; left: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
}

/* Rechts */
#slider.neo-box > .neon-right {
  top: 10%; bottom: 10%; right: 0; width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary-light), var(--primary));
  animation-name: neon-move-vertical;
  animation-direction: reverse;
}

@keyframes neon-move-horizontal {
  0% { left: 10%; right: 10%; }
  100% { left: 0; right: 0; }
}

@keyframes neon-move-vertical {
  0% { top: 10%; bottom: 10%; }
  100% { top: 0; bottom: 0; }
}

/* ===========================
   Bild-Slider / Carousel (bestehende Styles)
   =========================== */
#slider {
  max-width: 700px;
  margin: 32px auto;
  background: var(--background-glass);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
  font-family: var(--font-family);
  padding: 20px 24px;
  border: 2px solid var(--primary);
  text-align: center;
}

#slider > h2 {
  color: var(--primary-light);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 16px;
  text-shadow:
    0 0 5px rgba(200, 214, 229, 0.7), /* Icy Silver */
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Slider Container */
.slider {
  position: relative;
  overflow: hidden; /* Wichtig: verhindert Überlaufen */
  border-radius: var(--box-radius);
  background-color: var(--background);
  box-shadow: 0 4px 16px rgba(160, 59, 68, 0.3); /* Icy Crimson Metallic transparent */
}

/* Slides Wrapper */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  outline: none; /* tabindex=0 for keyboard focus */
  width: 300%; /* Beispiel für 3 Slides, besser per JS setzen */
}

/* Einzelne Slide */
.slide {
  width: 100%; /* Jede Slide nimmt 100% der sichtbaren Breite ein */
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

/* .slide[aria-hidden="true"] { */
/* display: none; */
/* } */

.slide img {
  width: 50%;
  height: auto;
  border-radius: var(--box-radius) var(--box-radius) 0 0;
  display: block;
}

.description {
  background: rgba(160, 59, 68, 0.7); /* Icy Crimson Metallic transparent */
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 0 0 var(--box-radius) var(--box-radius);
  text-align: center;
  user-select: none;
}

/* Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 12px;
  pointer-events: none; /* disable clicks on container */
}

.nav-button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--foreground);
  font-size: 1.8rem;
  cursor: pointer;
  pointer-events: auto; /* enable clicks on buttons */
  box-shadow: 0 4px 12px rgba(160, 59, 68, 0.5);
  transition: background-color var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--accent);
  color: var(--primary-dark);
  outline: none;
}

/* Accessibility focus */
.nav-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 600px) {
  #slider {
    max-width: 98vw;
    padding: 16px 12px;
  }
  .nav-button {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
  .description {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}