/* =========================
   PROJECTS – LAYOUT
   ========================= */

.centerline_head{
  margin-bottom: 1rem;
}

.banner.img-comb-03{
  margin-top:1.5rem;
}

.legende{
  max-width:900px;
  margin:1rem auto 0;
  padding:0 1rem;
  text-align:center;
  font-family:'Lato',sans-serif;
  font-size:.88rem;
  line-height:1.35;
  color:#666;
}

.about_text{
  max-width:900px;
  margin:0 auto;
  padding:0 1rem;
}

.about_text h2{
  margin:1.6rem 0 .45rem;
}

.about_text p{
  margin-top:0;
}

/* 👉 entscheidend: letzter Absatz sauber abschließen */
.about_text p:last-of-type{
  margin-bottom:0;
}

/* =========================
   CHAPTER LINE (prev / title / next)
   ========================= */

.chapter-line{
  max-width:900px;
  margin:2rem auto 1.6rem;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1rem;
  font-family:'Lato',sans-serif;
}

.chapter-line__prev{
  text-align:left;
}

.chapter-line__title{
  text-align:center;
  margin:0;
  font-size:1rem;
  line-height:1.35;
  letter-spacing:0;
  font-weight:400;
  color:#222;
}

.chapter-line__next{
  text-align:right;
}

.chapter-line__prev a,
.chapter-line__next a{
  display:inline-block;
  text-decoration:none;
  color:#666;
  font-size:1rem;
  line-height:1.35;
  border-bottom:1px solid transparent;
}

.chapter-line__prev a:hover,
.chapter-line__prev a:focus,
.chapter-line__next a:hover,
.chapter-line__next a:focus{
  color:#111;
  border-bottom-color:#111;
}

/* =========================
   CHAPTER LIST
   ========================= */

.chap-list{
  width:100%;
  max-width:900px;

  /* 👉 reduziert und kontrolliert */
  margin:0.8rem auto 4.5rem;  

  /* 👉 weniger Luft über der Linie */
  padding-top:0.3rem; 

  border-top:1px solid #d6d6d6;
  font-family:'Lato',sans-serif;
}

.chap-list ol{
  display:table;
  margin:0 auto;
  padding:0;
  list-style:none;
}

.chap-list li{
  display:table-row;
}

.chap-num{
  display:table-cell;
  width:2rem;
  padding:0 0.6rem 0.55rem 0;
  text-align:right;
  vertical-align:top;
  font-size:.7rem;
  color:#999;
}

.chap-list li.active .chap-num{
  background:#ddd;
  color:#111;
  border-radius:50%;
  text-align:center;
  width:1.4rem;
  height:1.4rem;
  line-height:1.4rem;
  padding:0;
}

.chap-list a{
  display:table-cell;
  text-decoration:none;
  text-align:left;
  color:#555;
  font-size:.82rem;
  line-height:1.3;
  border-bottom:none;
  padding:0 0 0.55rem 0;
  white-space:normal;
}

.chap-list a:hover,
.chap-list a:focus{
  color:#111;
  border-bottom:none;
}

.chap-list li.active a{
  color:#111;
  border-bottom:none;
}

/* =========================
   MOTION REDUCTION
   ========================= */

@media (hover:none), (max-width:900px){
  .img-comb-02,
  .img-comb-02 *,
  .button_hover,
  .button_hover *{
    animation:none !important;
    transition:none !important;
  }
}

@media (prefers-reduced-motion:reduce){
  *{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:900px){

  .chapter-line{
    grid-template-columns:1fr;
    gap:.6rem;
  }

  .chapter-line__prev,
  .chapter-line__title,
  .chapter-line__next{
    text-align:left;
  }

  .chap-list{
    max-width:none;
  }

  .chap-list ol{
    display:block;
    margin:0 auto;
    max-width:640px;
  }

  .chap-list li{
    display:grid;
    grid-template-columns:1.8rem 1fr;
    gap:.5rem;
    margin-bottom:.45rem;
    align-items:start;
  }

  .chap-num{
    display:block;
    width:auto;
    padding:0;
    text-align:right;
  }

  .chap-list li.active .chap-num{
    width:1.4rem;
    height:1.4rem;
    line-height:1.4rem;
    justify-self:end;
  }

  .chap-list a{
    display:block;
    padding:0;
    text-align:left;
  }

}