/* ─────────────── MOBILE-STANDARD ─────────────── */

.topic-block {
  display: flex;
  flex-direction: column;
}

.topic-tabs-nav {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  width: 100%;
  justify-content: flex-start;
  position: relative;
}

.topic-tab-button {
  background-color: transparent;
  padding: 0.6rem 1.2rem;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: white;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.topic-tab-button.active {
  font-weight: bold;
}

.topic-tabs-nav::before {
  display: none; /* Linie im Mobile ausgeblendet */
}

.topic-content {
  width: 100%;
  padding: 1rem;
}

.topic-tabs-nav::before {
  display: block;
  content: "";
  position: absolute;
  bottom: -4px; /* unterhalb platzieren */
  left: 0;
  width: 100%; /* horizontal */
  height: 4px; /* dünner Streifen */
  background-image: linear-gradient(
    90deg, /* Horizontaler Verlauf */
    #2e3d56,
    #2f5668,
    #2e7b79,
    #2b8f6d,
    #28a551,
    #23bd24,
    #56d51c,
    #9fec18,
    #eef620,
    #ffc229
  );
  border-radius: 0px;
  margin-bottom: 1rem;
}

    .topic-content {
    position: relative;
    min-height: 280px;
  }

  .topic-arrows-overlay {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none; /* durchklickbar machen */
  }

  .topic-next,
  .topic-prev{
    position: absolute;
    top: 250px;
  }

  .topic-next{
  right: -25px;
  }
  
  .topic-prev{
    left: -25px;
  }

  .topic-arrows-overlay button {
    background: transparent;
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto; /* Klicks wieder aktivieren */
    border-radius: 4px;
  }

  .topic-arrows-overlay button:hover {
transform: scale(1.1);
  }

 .desktop_none,
 .topic-tabs-nav{
    display: none;
  }

   .desktop_none{
    display: block;
    font-size: 2rem;
  }

/* ─────────────── DESKTOP (AB 880px) ─────────────── */
@media (min-width: 880px) {
 .desktop_none,
.topic-arrows-overlay {
    display: none;
  }


 .topic-tabs-nav{
    display: flex;
  }

  .inner-topic{
    margin-top: auto;
    margin-bottom: auto;
  }

  .topic-block {
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
  }

  .topic-content {
    flex: 0 0 66%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .topic-tabs-nav {
    flex: 0 0 34%;
    justify-content: space-between;
    padding: 4rem 2rem;
    order: 0;
    min-height: 700px;
  }

  .topic-tabs-nav::before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-image: linear-gradient(
      180deg,
      #2e3d56,
      #2f5668,
      #2e7b79,
      #2b8f6d,
      #28a551,
      #23bd24,
      #56d51c,
      #9fec18,
      #eef620,
      #ffc229
    );
    border-radius: 0px;
  }


}
