/* ==========================================================================
   Schreinerei Kemptner — Project detail template
   (Figma frame "projekte-oak" 377:1074). One stylesheet for every project
   detail page; only the content in the HTML changes per project.
   Requires css/base.css and css/components.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Photo header (377:1075): 670px tall, full-bleed photo with a green
   gradient overlay, white title + lime dot at the bottom-left. Pulled up
   underneath the transparent light top bar.
   -------------------------------------------------------------------------- */
.sk-project-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 38.84vw, 41.875rem);
  margin-top: calc(-1 * var(--sk-topbar-h, 91px));
  padding-top: var(--sk-topbar-h, 91px);
  padding-bottom: clamp(2.5rem, 4.64vw, 5rem);
  background-color: var(--sk-schwarz);
  overflow: hidden;
}

.sk-project-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sk-project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--sk-waldgruen) 32%, transparent), color-mix(in srgb, var(--sk-waldgruen) 15%, transparent));
}

.sk-project-hero .sk-container {
  position: relative;
  z-index: 2;
}

.sk-project-hero__title {
  font-size: clamp(3rem, 6.38vw, 6.875rem); /* 110px */
  line-height: 1;
  color: var(--sk-weiss);
}

.sk-project-hero__dot {
  color: var(--sk-neongelb);
}

/* --------------------------------------------------------------------------
   Description + materials (377:1115): sage band, 80px between columns
   -------------------------------------------------------------------------- */
.sk-project-info {
  display: flex;
  flex-direction: column;
  gap: var(--sk-stack-gap);
  color: var(--sk-moos);
}

.sk-project-info__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  flex: 1 1 0;
  min-width: 0;
}

.sk-project-info__title {
  font-size: var(--sk-fs-h2);
  line-height: 1.2;
  color: var(--sk-moos);
}

.sk-project-info__text {
  max-width: 708px;
  font-size: var(--sk-fs-xl);
  line-height: 1.2;
}

.sk-materials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 432px;
  flex: none;
}

.sk-materials__title {
  font-size: clamp(1.25rem, 1.39vw, 1.5rem); /* 24px */
  line-height: 1.2;
  color: var(--sk-moos);
}

.sk-materials__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.sk-materials__list dd {
  margin: 0;
}

.sk-materials__row {
  display: flex;
  gap: 40px;
  padding-block: 8px;
  font-size: 0.875rem; /* 14px */
}

.sk-materials__label {
  flex: none;
  width: 70px;
  font-weight: var(--sk-fw-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sk-materials__divider {
  height: 1.5px;
  background-color: var(--sk-neongelb);
}

@media (min-width: 992px) {
  .sk-project-info {
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
  }
}

/* --------------------------------------------------------------------------
   Masonry gallery (377:1136): two 600px columns, 20px gaps, tiles of
   600x393 (landscape) and 600x885 (portrait), 4px radius. Every tile
   opens the fullscreen slider.
   -------------------------------------------------------------------------- */
.sk-masonry-section {
  padding-block: clamp(3rem, 4.64vw, 5rem);
  background-color: var(--sk-weiss);
}

.sk-masonry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.sk-masonry__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The build script splits the photos into two columns of nearly equal
   height; the last tile of each column absorbs the small rest so both
   columns end flush (the photo is simply cropped a little more). */
@media (min-width: 576px) {
  .sk-masonry__col > :last-child {
    flex-grow: 1;
  }
}

.sk-masonry__tile {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  cursor: zoom-in;
}

.sk-masonry__tile--landscape {
  aspect-ratio: 600 / 393;
}

.sk-masonry__tile--portrait {
  aspect-ratio: 600 / 885;
}

.sk-masonry__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sk-transition-base);
}

.sk-masonry__tile:hover img,
.sk-masonry__tile:focus-visible img {
  transform: scale(1.03);
}

@media (min-width: 576px) {
  .sk-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Category pages (kategorie-*.html, not in Figma): the gallery is a stack
   of blocks — one per piece of work (single orders grouped by kitchen,
   staircase …, then pieces from the Gesamtkonzepte with a project link).
   Each block reuses the masonry above.
   -------------------------------------------------------------------------- */
.sk-category-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--sk-stack-gap);
}

.sk-category-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.sk-category-block__title {
  font-size: var(--sk-fs-title);
  line-height: 1.2;
  color: var(--sk-schwarz);
}

.sk-category-block__link {
  font-size: var(--sk-fs-body);
  color: var(--sk-moos);
  text-decoration: underline;
  text-decoration-color: var(--sk-neongelb);
  text-underline-offset: 0.2em;
}

.sk-category-block__link:hover,
.sk-category-block__link:focus-visible {
  color: var(--sk-schwarz);
}

/* Two single-photo pieces side by side (stacked on phones) */
.sk-category-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sk-stack-gap) 20px;
  align-items: start;
}

@media (min-width: 576px) {
  .sk-category-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
