/* ==========================================================================
   Schreinerei Kemptner — Home page (Figma frame "home" 377:1252)
   Requires css/base.css and css/components.css.
   Desktop layout = Figma; tablet/phone layouts stack the columns.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero (377:1287): sage text half with tree-line pattern | photo half with
   a white "Projekte" card pinned bottom-left.
   -------------------------------------------------------------------------- */
.sk-hero {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--sk-nebel);
}

.sk-hero__intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sk-stack-gap);
  padding: var(--sk-section-py) var(--sk-gutter);
}

/* Pattern is 1480x987 in Figma, anchored top-left and clipped by the half */
.sk-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  min-width: 100%; /* wide, short blocks (tablet) must still be covered */
  max-width: none;
  object-fit: cover;
  object-position: left top;
  pointer-events: none;
}

.sk-hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sk-hero__title {
  font-size: var(--sk-fs-hero);
  line-height: 1.2;
  color: var(--sk-moos);
}

.sk-hero__title-dot {
  color: var(--sk-neongelb);
}

.sk-hero__lead {
  max-width: 522px;
  font-size: var(--sk-fs-lead);
  line-height: 1.2;
  color: var(--sk-moos);
}

.sk-hero__intro .sk-arrow-link {
  position: relative;
}

.sk-hero__media {
  position: relative;
  min-height: clamp(26rem, 90vw, 40rem);
  background-color: var(--sk-schwarz);
}

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

/* White card — Figma: 349x420, 60px padding, 24px gap */
.sk-hero__card {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(349px, 80%);
  padding: clamp(1.5rem, 3.48vw, 3.75rem);
  background-color: var(--sk-weiss);
}

.sk-hero__card-title {
  font-size: var(--sk-fs-h2);
  line-height: 1.2;
}

/* The Figma text starts with an empty line before "Holz." */
.sk-hero__card-claim {
  margin-top: 1.2em;
  font-size: var(--sk-fs-lead);
  line-height: 1.2;
}

@media (min-width: 992px) {
  /* Figma ratio (987px tall at 1725px wide), but never taller than the
     visible window below the top bar — so "Los geht's" and the Projekte
     card are on the first screen at any desktop window size. 32rem is the
     floor for very short windows, where the page simply scrolls. */
  .sk-hero {
    grid-template-columns: 1fr 1fr;
    height: max(32rem, min(57.2vw, calc(100vh - var(--sk-topbar-h, 91px))));
    height: max(32rem, min(57.2vw, calc(100svh - var(--sk-topbar-h, 91px))));
  }

  /* Left edge follows the 1220px content column like every other section;
     vertical padding shrinks on short windows (120px max, as in Figma). */
  .sk-hero__intro {
    padding-block: clamp(2rem, 7vh, var(--sk-section-py));
    padding-left: max(var(--sk-gutter), calc((100vw - var(--sk-content-max)) / 2));
    padding-right: var(--sk-gutter);
  }

  .sk-hero__media {
    min-height: 0;
  }

  .sk-hero__card {
    width: 349px;
    min-height: 420px;
  }
}

/* --------------------------------------------------------------------------
   Vita (377:1330): copy left, tree-disc badge with "100+" right
   -------------------------------------------------------------------------- */
.sk-vita {
  padding-block: clamp(4rem, 10.8vw, 11.7rem); /* 187px top/bottom in Figma */
}

.sk-vita__inner {
  display: flex;
  flex-direction: column;
  gap: var(--sk-stack-gap);
}

.sk-vita__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  max-width: 869px;
}

.sk-vita__text {
  max-width: none;
  font-size: var(--sk-fs-xl);
  line-height: 1.2;
}

/* Badge: 251px square in Figma. The disc SVG is larger than the badge and
   clipped by the Figma mask, which is an exact circle (r = 125.5 in the
   251px box) — expressed as clip-path so it also works from file:// where
   Chrome blocks CSS mask images. Text positions are the Figma offsets as
   % of the 251px box. */
.sk-badge {
  position: relative;
  flex: none;
  width: clamp(10rem, 14.55vw, 15.69rem);
  aspect-ratio: 1;
  container-type: inline-size;
  align-self: center;
}

.sk-badge__disc {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
}

.sk-badge__disc img {
  position: absolute;
  top: -13.17%;
  left: -13.32%;
  width: 118.28%;
  height: 116.4%;
  max-width: none;
}

.sk-badge__num,
.sk-badge__plus {
  position: absolute;
  line-height: 1.2;
  white-space: nowrap;
}

.sk-badge__num {
  left: 9.16%;
  top: 26.29%;
  font-weight: var(--sk-fw-bold);
  font-size: 39.84cqw; /* 100px / 251px */
  color: var(--sk-weiss);
}

.sk-badge__plus {
  left: 76.1%;
  top: 21.91%;
  font-weight: var(--sk-fw-heavy);
  font-size: 26.69cqw; /* 67px / 251px */
  color: var(--sk-neongelb);
}

@media (min-width: 992px) {
  .sk-vita__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Prozess (377:13696): five steps, each indented 80px more than the last
   on desktop, lime 1px dividers between them.
   -------------------------------------------------------------------------- */
.sk-process {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

.sk-process__step {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.32vw, 2.5rem);
}

.sk-process__num {
  flex: none;
  min-width: 2ch;
  font-weight: var(--sk-fw-semibold);
  font-size: var(--sk-fs-num);
  line-height: 0.9;
  color: var(--sk-neongelb);
}

.sk-process__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 800px;
}

.sk-process__title {
  font-size: var(--sk-fs-title);
  line-height: 1.2;
}

.sk-process__text {
  max-width: none;
  font-size: var(--sk-fs-body);
  line-height: 1.5;
}

.sk-process__divider {
  height: 1px;
  border: 0;
  margin: 0;
  background-color: var(--sk-neongelb);
  opacity: 1;
}

@media (min-width: 768px) {
  .sk-process__step {
    padding-left: calc(var(--step) * clamp(1.5rem, 4.64vw, 5rem)); /* 80px */
  }
}
