/* ── ARBEITEN PAGE ── */
/* Requires: main.css */

/* ── SLIDER WRAPPER ── */
.slider-section {
  position: relative;
  min-height: calc(100vh - 91px - 80px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 40px;
}


/* ── SLIDES CONTAINER ── */
.slides-container {
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px var(--gutter);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}

/* Invisible spacer so the container has height matching the tallest slide */


.slide-sizer {
  visibility: hidden;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px var(--gutter);
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide.exit {
  opacity: 0;
  transform: translateX(-40px);
}

/* ── IMAGE SIDE ── */
.slide-image {
  /* padding-right: 48px; */
  align-self: start;
}

.slide-image img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  display: block;
  padding: 0;
}

.slide-image .img-placeholder {
  width: 100%;
  aspect-ratio: 14 / 9;
  background: var(--light);
  display: flex;
  align-items: top;
  justify-content: top;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  text-transform: uppercase;
}

/* ── TEXT SIDE ── */
.slide-content {
  /* padding-left: 60px; */
  flex: 1 1 50%;
  min-width: 0;
  height: 100%;
  /* 
  padding: 20px var(--gutter) 0 var(--gutter);
    height: auto;
  */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-letter-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 1rem;
  font-weight: 900;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-left: 16px;
  vertical-align: middle;
  flex-shrink: 0;
}

.slide-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 28px;
}

.slide-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1.0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

.slide-description {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--dark);
  max-width: 520px;
  margin-bottom: 36px;
}

.btn-project {
  display: inline-block;
  background: var(--slate);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-project:hover { background: var(--dark); }

/* ── ALPHABET NAV ── */
.alphabet-nav {
  padding: 0;
  background: var(--white);
}

.alphabet-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 var(--gutter);
}

.alpha-arrow {
  background: var(--slate);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.alpha-arrow:hover { background: var(--dark); }

.alpha-arrow img { width: auto; height: 10px; display: block; }
#nextBtn img { transform: rotate(180deg); }

.alpha-letters {
  display: flex;
  flex: 1;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
  height: 48px;
}

.alpha-letter {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 2px;
  border: none;
  background: none;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.2s;
  position: relative;
}

.alpha-letter::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--dark);
  width: 0;
  margin: 2px auto 0;
  transition: width 0.2s;
}

.alpha-letter.active { color: var(--dark); }

.alpha-letter.active::after { width: 100%; }

.alpha-letter:hover:not(.empty) { color: var(--dark); }

.alpha-letter.empty {
  color: #cdd3da;
  cursor: default;
  pointer-events: none;
}

/* ── RESPONSIVE: arbeiten page ── */
@media (max-width: 960px) {
  .alpha-letter:not(.in-window) {
    display: none;
  }
}

@media (max-width: 900px) {
  .alpha-letters {
    flex-wrap: wrap;
    height: auto;
    padding: 6px 0;
    row-gap: 2px;
  }

  .alpha-letter {
    width: calc(100% / 13);
    text-align: center;
    padding: 5px 0;
  }
}

@media (max-width: 768px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 0 0 32px 0;
    align-items: start;
  }

  .slide-sizer {
    grid-template-columns: 1fr;
    padding: 0 0 32px 0;
  }

  .slide-image {
    padding: 0 20px;
    margin-bottom: 0;
    width: 100%;
  }

  .slide-image img,
  .slide-image .img-placeholder {
    width: 100%;
  }

  .slide-content {
    padding: 20px var(--gutter) 0 var(--gutter);
    height: auto;
  }

  .slide-title-row {
    margin-bottom: 16px;
    align-items: center;
  }

  .slide-letter-badge {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 0.85rem;
    margin-left: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
  }

  .slide-description {
    font-size: 0.78rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }
}

@media (max-width: 400px) {
  
}
