/* Grid-Layout */
.jahrzehnte-grid, .jahre-des-jahrzehnts {
  display: grid;
  gap: 16px;
  margin: 2rem auto;
  max-width: 1100px;
  grid-template-columns: repeat(5, 1fr); /* default 5 Spalten ab 1201px */
}

/* 1025px bis 1200px: 4 Spalten */
@media (min-width: 1025px) and (max-width: 1200px) {
  .jahrzehnte-grid, .jahre-des-jahrzehnts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 881px bis 1024px: 3 Spalten */
@media (min-width: 881px) and (max-width: 1024px) {
  .jahrzehnte-grid, .jahre-des-jahrzehnts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 768px bis 880px: 2 Spalten */
@media (min-width: 768px) and (max-width: 880px) {
  .jahrzehnte-grid, .jahre-des-jahrzehnts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* bis 767px: 1 Spalte */
@media (max-width: 767px) {
  .jahrzehnte-grid, .jahre-des-jahrzehnts {
    grid-template-columns: 1fr;
  }
}

/* Box-Grundstruktur */
.jahrzehnt-box {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f0f0;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.jahrzehnt-box:hover,
.jahrzehnt-box.touch-hover {
  transform: scale(1.02);
}

/* Bild */
.img-wrapper img,
.jahrzehnt-bild {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Link über komplette Box */
.jahrzehnt-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlay-Name */
.jahrzehnt-name {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: var(--e-global-color-accent, #444);
  font-size: 1.4rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 0.5rem;
}
.jahrzehnt-box:hover .jahrzehnt-name,
.jahrzehnt-box.touch-hover .jahrzehnt-name {
  opacity: 1;
}

.no-link-year {
  opacity: 0.5;
  pointer-events: none;
}

.jahrzehnt-box.navbox .jahrzehnt-name {
  background: transparent;
  color: inherit;
  opacity: 1;
  position: static;
}

.jahrzehnt-box.leerbox {
  visibility: hidden;
}

/* ===================== */
/* Elementor Post Navigation Style */
/* ===================== */
/* Navigation Block */
.elementor-post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px auto;
  max-width: 1100px;
  gap: 40px;
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
}

/* Link-Container (je Seite) */
.elementor-post-navigation__link a{
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  gap: 15px;
  height: 50px;
  color: inherit;
}

.elementor-post-navigation__prev {
  justify-content: flex-start;
}

.elementor-post-navigation__next {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

/* SVG Pfeil */
.elementor-post-navigation__link svg {
  width: 30px;
  height: 30px;
  fill: #d5d8dc;
  display: block;
  flex-shrink: 0;
}

/* Beschriftung */
.elementor-post-navigation__link__prev,
.elementor-post-navigation__link__next {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

/* Label (oben) */
.post-navigation__prev--label,
.post-navigation__next--label {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 12.8px;
  line-height: 25.6px;
  color: #333;
}

/* Titel (unten) */
.post-navigation__prev--title,
.post-navigation__next--title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 11.2px;
  line-height: 25.6px;
  color: #a08763;
}


/*
@media (max-width: 768px) {
  .elementor-post-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .elementor-post-navigation__next {
    justify-content: flex-start;
    text-align: left;
  }
}*/