:root {
  --border: #e5e7eb;
  --text: #111827;
  --active-red: #dc3545; /* Bootstrap Danger */
}

/* Hilfs-Utility */
.minw-86 { min-width: 86px; }


/* Aktiver Zustand: NUR rote Schrift + roter Rahmen */
.block-zeitstrahlblock .swiper-slide.active .pill {
  border-color: var(--active-red);
  color: var(--active-red);
}

.block-zeitstrahlblock .card {
  background-color: #f4f4f4;
}

.block-zeitstrahlblock .text-red {
    color: #b70611;
}

.block-zeitstrahlblock .card .card-body h2 {
  font-family: 'Lekton', sans-serif;
}

:root {
  --timeline-height: 72px;        /* total height of years strip */
  --timeline-dot-size: 14px;      /* diameter of dot */
  --timeline-line-thickness: 2px;
  --timeline-side-gap: 40px;      /* safe padding inside line for arrows */
}

.block-zeitstrahlblock .timeline-bar {
  position: relative;
}

.block-zeitstrahlblock .timeline-bar .js-yearsSwiper {
  position: relative;
  height: var(--timeline-height);
  overflow: hidden; 
}

.block-zeitstrahlblock .timeline-bar .line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 var(--timeline-side-gap);
  height: var(--timeline-line-thickness);
  background: #e8e8e8;
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
  pointer-events: none; 
}

.block-zeitstrahlblock .year-slide {
  flex: 0 0 auto;
  position: relative;
  min-width: 86px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6px;
  z-index: 2; 
  cursor: pointer;
}

.block-zeitstrahlblock .year-slide .year {
  margin-bottom: calc(var(--timeline-dot-size) / 2 + 6px);
  font-size: 0.95rem;
  color: #222;
  z-index: 3;
  white-space: nowrap;
}

.block-zeitstrahlblock .year-slide .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 25%;
  background: #bfbfbf;
  z-index: 3;
  transition: background .18s ease, transform .18s ease;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35) inset;
}

.block-zeitstrahlblock .year-slide.active .dot {
  background: #c11b17;
  transform: translate(-50%, -50%) scale(1.05);
}

.block-zeitstrahlblock .year-slide.active .year {
  color: #222;
  font-weight: 700;
}

.block-zeitstrahlblock .nav-btn {
  z-index: 4;
  align-self: center; 
  position: relative;
  top: 0;
}

.block-zeitstrahlblock .nav-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #222;
  border-radius: 0;       /* square */
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.block-zeitstrahlblock .nav-btn img {
  width: 18px;
  height: auto;
}


.block-zeitstrahlblock .nav-btn:hover,
.block-zeitstrahlblock .nav-btn:focus {
  background: #f9f9f9;
  border-color: #000;
}

.block-zeitstrahlblock .nav-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #222;   
  border-radius: 0 !important;
  background: #fff;           
  color: #222;                
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease-in-out;
}

.block-zeitstrahlblock .nav-btn:hover,
.block-zeitstrahlblock .nav-btn:focus {
  background: #f9f9f9;
  color: #000;
  border-color: #000;
}


.block-zeitstrahlblock .nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}


@media (max-width: 575px) {
  :root {
    --timeline-height: 64px;
    --timeline-side-gap: 28px;
    --timeline-dot-size: 12px;
  }
  .block-zeitstrahlblock .year-slide {
    min-width: 72px;
  }
}
