@charset "utf-8";

/* =========================================================
   NADJASART – KURSDETAILSEITEN
   Ergänzung zu nadjasart.css
   Bereinigte Arbeitsversion – November 2026
   ========================================================= */

/* 1. Kurskopf */

.hero {
  padding: 24px 0 30px;
  background: linear-gradient(
    115deg,
    #e6f1ec,
    #fff1df 66%,
    #f9d5c5
  );
}

.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 34px;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 {
  margin: 7px 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.hero .lead {
  max-width: 650px;
  color: #456062;
  font-size: 15px;
  line-height: 1.5;
}

.hero .eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 245px;
  border: 8px solid white;
  border-radius: 5px;
  object-fit: cover;
  box-shadow:
    10px 10px 0 var(--teal),
    0 12px 30px #17343b20;
}

/* 2. Schaltflächen der Kursdetailseiten */

.hero .button,
.info-section .button,
.bottom .button {
  background: var(--coral);
  color: white;
}

.hero .button:hover,
.info-section .button:hover,
.bottom .button:hover {
  background: #b94430;
}

.button.secondary {
  background: var(--teal);
}

.button.secondary:hover {
  background: #185b60;
}

/* 3. Kursinformationen */

.info-section {
  padding: 42px 0;
}

.layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(285px, .85fr);
  align-items: start;
  gap: 55px;
}

.info-section h2,
.gallery h2,
.bottom h2 {
  font-size: clamp(29px, 4vw, 44px);
}

.copy p {
  margin: 0 0 18px;
  color: #425e5f;
}

/* 4. Stichworte / Chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.chip {
  padding: 7px 13px;
  border-radius: 99px;
  background: #e1eeea;
  color: #185b60;
  font-size: 13px;
  font-weight: 700;
}

/* 5. Kursdetails / Infokarte */

.info-section .details {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px #17343b0d;
}

.info-section .details h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.info-section .detail {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-section .detail strong {
  display: block;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.info-section .details .button {
  display: block;
  margin-top: 22px;
  text-align: center;
}

#kursinfos {
  scroll-margin-top: 140px;
}

/* 6. Bildergalerie */

section.gallery {
  padding: 48px 0;
  background: #e7f0ec;
}

.gallery h2 {
  margin: 0 0 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 28px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: white;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .2s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.035);
}

/* 7. Abschlussbereich */

section.bottom {
  padding: 58px 0;
  background: #ffe6d8;
}

.bottom .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.bottom h2 {
  margin: 0 0 10px;
}

/* 8. Lightbox der Kursdetailseiten
   Eigene Variante – unabhängig von Ausstellungen */

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 70px 55px;
  background: rgba(8, 21, 26, .96);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 135px);
  object-fit: contain;
}

.lightbox figcaption {
  color: white;
  font-size: 14px;
  text-align: center;
}

/* Lightbox-Bedienelemente */


/* Lightbox: Symbole exakt zentrieren */
.lb-control {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;
  padding: 0;

  border: 1px solid #ffffff60;
  border-radius: 50%;

  background: #17343bdb;
  color: #fff;

  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;
  text-align: center;
}


.lb-control:hover {
  background: var(--teal);
}

.lb-close {
  top: 15px;
  right: 18px;
}

.lb-prev {
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.lb-next {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

/* 9. Aktive Navigation
   Ergänzung für bestehende HTML-Seiten */

.header .navlinks a.nav-active {
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* 10. Smartphone */

@media (max-width: 720px) {

  .hero {
    padding: 22px 0 26px;
  }

  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(27px, 6.5vw, 34px);
  }

  .hero-image {
    height: 205px;
  }

  .info-section,
  section.gallery {
    padding: 35px 0;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .info-section .details {
    padding: 23px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid img {
    height: 160px;
  }

  .bottom .wrap {
    display: block;
  }

  .bottom .button {
    margin-top: 12px;
  }
}

/* 11. Lightbox auf kleinen Smartphones */

@media (max-width: 600px) {

  .lightbox {
    padding: 62px 12px 65px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 13px;
    transform: none;
  }

  .lb-prev {
    left: calc(50% - 75px);
  }

  .lb-next {
    right: calc(50% - 75px);
  }

  .lightbox img {
    max-height: calc(100dvh - 170px);
  }
}

/* 12. Barrierefreiheit */

@media (prefers-reduced-motion: reduce) {

  .gallery-grid img {
    transition: none;
  }

}


/* Lightbox: Pfeile horizontal und vertikal zentrieren */
.lb-prev {
  padding-right: 3px;
  padding-bottom: 3px;
}

.lb-next {
  padding-left: 3px;
  padding-bottom: 3px;
}
