﻿/* =======================================================
   SLIDER WRAPPER
======================================================= */

.my-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  cursor: grab;
}

.my-slider.is-dragging {
  cursor: grabbing;
}

.my-slider-window {
  overflow: hidden;
  width: 100%;
}

.my-slider-track {
  display: flex;
  transition: transform 0.35s ease;
}


/* =======================================================
   SLIDES
======================================================= */

.my-slide {
  box-sizing: border-box;
  flex: 0 0 100%;          /* Mobile: 1 Slide */
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bilder in normalen Slides */
.my-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}


/* Desktop: 4 Slides + feste Höhe */
@media (min-width: 768px) {
  .my-slide {
    flex: 0 0 25%;
    height: 230px;
  }

  .my-slide img {
    max-height: 100%;
    width: auto;
  }
}


/* =======================================================
   LETZTER SLIDE (Kachel mit Hintergrund)
======================================================= */

.weitere-beilagen1 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 200px;              /* feste Breite wie gewünscht */
  height: 230px;             /* gleiche Höhe wie Desktop-Slides */
  border-radius: 5px;

  background-image: url("https://www.flz.de/static/images/beilagen_hintergrund.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  text-decoration: none;
  padding:10px;
}

/* Button innerhalb der Kachel */
.weitere-beilagen1 .btn {
  text-align: center;
  white-space: normal;
}

/* Pfeil mittig unten */
.beil-sym1 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem !important;
  color: #005da8 !important;
}


/* =======================================================
   NAVIGATION BUTTONS
======================================================= */

.my-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;

  background: rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease;
}

/* Pfeil-Icon */
.my-slider-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
  margin-left: -5px;
}

/* Pfeil links */
.my-slider-btn.prev::before {
  transform: rotate(135deg);
  margin-left: 5px;
}

/* Hover / Active / Fokus */
.my-slider-btn:hover:not(:disabled),
.my-slider-btn:active:not(:disabled),
.my-slider-btn:focus-visible:not(:disabled) {
  background: #005da8;
}

/* Idle */
.my-slider-btn:not(:hover):not(:active):not(:focus-visible):not(:disabled) {
  background: rgba(0, 0, 0, 0.4);
}

/* Disabled */
.my-slider-btn:disabled {
  background: rgba(0, 0, 0, 0.15);
  opacity: 0.4;
  cursor: default;
}

.my-slider-btn.prev { left: 0.5rem; }
.my-slider-btn.next { right: 0.5rem; }


/* =======================================================
   PAGINATION DOTS
======================================================= */

.my-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 35px;
}

.my-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s ease;
}

.my-slider-dots button.active {
  background: #005da8;
}

.my-slider-dots button:hover {
  background: #666;
}