/* ================================================================
   EBHARDT – SCHULE
   Seitenspezifisches Stylesheet
   ================================================================ */

:root {
  --schule-bg: #d4d8c7;
  --schule-text: #1f1f1f;
}

/* ----------------------------------------------------------------
   NAV
   ---------------------------------------------------------------- */
.schule-nav .site-nav__logo-img {
  filter: none;
}

.schule-menu-btn {
  border-color: var(--schule-text) !important;
  color: var(--schule-text) !important;
}
.schule-menu-btn:hover {
  background: var(--schule-text) !important;
  color: var(--schule-bg) !important;
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.schule-hero {
  background-color: var(--schule-bg);
  padding: 10rem 4rem 3rem;
}

.schule-hero__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: var(--schule-text);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2rem;
}

.schule-hero__text {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.schule-hero__text p {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(0.9rem, 2.2vw, 2.1rem);
  color: var(--schule-text);
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   KATEGORIE-NAVIGATION
   ---------------------------------------------------------------- */
.schule-kategorien {
  background-color: var(--schule-bg);
  padding: 3rem 4rem 2rem;
}

.schule-kategorien__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
}

.schule-kat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--schule-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border-bottom: 2px solid transparent;
}

.schule-kat-btn:hover {
  opacity: 0.8;
}
.schule-kat-btn.active {
  opacity: 1;
  border-bottom-color: var(--schule-text);
}

.schule-kat-btn__icon {
  font-size: 1.2em;
  display: flex;
  align-items: center;
}
.schule-kat-btn__icon svg {
  width: 1.4em;
  height: 1.4em;
}

/* ----------------------------------------------------------------
   GALERIE
   ---------------------------------------------------------------- */
.schule-galerie {
  background-color: var(--schule-bg);
  padding: 1.5rem 4rem 5rem;
}

/* Header: Label + Trennlinie */
.schule-galerie__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.schule-galerie__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--schule-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.schule-galerie__line {
  flex: 1;
  border: none;
  border-top: 1px solid var(--schule-text);
  opacity: 0.4;
  margin: 0;
}

.schule-galerie__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: calc((100vw - 8rem - 4rem) / 4 * 4 / 3);
  grid-auto-flow: dense;
  gap: 1rem;
}

.schule-foto {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.schule-foto--quer {
  grid-column: span 2;
}
.schule-foto--hoch {
  grid-column: span 1;
}

.schule-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.schule-foto:hover img {
  transform: scale(1.03);
}

.schule-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 31, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}
.schule-foto:hover::after {
  background: rgba(31, 31, 31, 0.12);
}

/* ----------------------------------------------------------------
   KATALOGE / BROSCHÜREN
   ---------------------------------------------------------------- */
.schule-kataloge {
  background-color: var(--schule-bg);
  padding: 2rem 4rem 6rem;
}

.schule-kataloge__header {
  text-align: center;
  margin-bottom: 3rem;
}

/* "Einblicke in unsere Arbeit" – leicht, dünn */
.schule-kataloge__eyebrow {
  font-family: var(--font-light);
  font-weight: 200;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--schule-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

/* "ANGEBOTE & BEISPIELE" – Heavy, groß */
.schule-kataloge__title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--schule-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

/* Grid: 3 Spalten mit mehr Padding */
.schule-kataloge__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 4rem;
  padding: 0 4rem;
}

/* Einzelner Katalog-Eintrag */
.schule-katalog-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  align-items: center; /* Alles zentrieren inkl. Text */
  max-width: 220px; /* Gleiche Breite wie das Bild */
  margin: 0 auto;
}

.schule-katalog-item:hover {
  opacity: 0.85;
}

/* Vorschaubild – kleiner */
.schule-katalog-item__img-wrap {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(31, 31, 31, 0.08);
  width: 100%;
}

.schule-katalog-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.schule-katalog-item:hover .schule-katalog-item__img-wrap img {
  transform: scale(1.03);
}

/* Typ (Broschüre / Folder) – größer */
.schule-katalog-item__typ {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--schule-text);
  text-transform: uppercase;
  margin-top: 0.5rem;
  text-align: center;
}

/* Titel – größer */
.schule-katalog-item__titel {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--schule-text);
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
}

/* ----------------------------------------------------------------
   LIGHTBOX
   ---------------------------------------------------------------- */
.schule-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.schule-lightbox[hidden] {
  display: none;
}

.schule-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.schule-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.schule-lightbox__img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.schule-lightbox__close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  background: transparent;
  border: 1.5px solid white;
  color: white;
  font-size: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}
.schule-lightbox__close:hover {
  background: white;
  color: black;
}

.schule-lightbox__prev,
.schule-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-size: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  z-index: 2;
}
.schule-lightbox__prev {
  left: 1.5rem;
}
.schule-lightbox__next {
  right: 1.5rem;
}
.schule-lightbox__prev:hover,
.schule-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.schule-lightbox__counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
}
.schule-katalog-item__typ {
  margin-bottom: -10px !important;
}

/* ----------------------------------------------------------------
   ANIMATIONEN
   ---------------------------------------------------------------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .schule-kataloge__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .schule-galerie__grid {
    grid-auto-rows: calc((100vw - -48rem - 4rem) / 5 * 4 / 3);
  }
  .schule-foto--quer {
    grid-column: span 2;
  }
  .schule-foto--hoch {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .schule-hero,
  .schule-kategorien,
  .schule-galerie,
  .schule-kataloge {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .schule-galerie__grid {
    grid-template-columns: 1fr;
  }
  .schule-foto--quer,
  .schule-foto--hoch {
    grid-column: span 1;
  }
  .schule-kataloge__grid {
    grid-template-columns: 1fr;
  }

  .schule-galerie__label {
    white-space: unset;
    text-align: center;
  }

  .schule-galerie__header {
    gap: 0;
  }

  .schule-katalog-item__typ {
    margin-bottom: -10px !important;
  }
}

/* Nav Hintergrund */
.schule-nav {
  background-color: var(--schule-bg);
}
