/* ---------------------------------------------------------------- Startseite */

.home section + section {
  margin-top: clamp(72px, 9vw, 128px);
}

.home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.home-section__head h2 {
  font-size: var(--fs-2xl);
}

.home-section__head .eyebrow {
  margin-bottom: .6rem;
}

/* Hero */
.home-hero {
  padding-block: clamp(28px, 4vw, 56px) 0;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}

.home-hero__copy h1 {
  max-width: 11ch;
  margin: 0 0 24px;
  font-size: var(--fs-4xl);
  font-stretch: 104%;
  letter-spacing: -.035em;
  line-height: .98;
}

.home-hero__copy .lead {
  max-width: 46ch;
  margin-bottom: 32px;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.home-facts > div {
  padding-right: 20px;
}

.home-facts > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.home-facts dt {
  color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}

.home-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.home-hero__art {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
}

.home-hero__art::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto -16px;
  height: 100%;
  border: 1.5px solid rgb(58 92 117 / 38%);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.home-hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
}

.home-hero__chip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 30px rgb(15 29 39 / 22%);
  transition: background-color .15s, transform .2s var(--ease);
}

.home-hero__chip:hover {
  background: var(--white);
  color: var(--ink);
  transform: translateY(-2px);
}

.home-hero__chip .aplam-i {
  width: 22px;
  height: 22px;
  color: var(--navy-700);
}

/* Bereiche */
.area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.area-card__art {
  display: block;
  aspect-ratio: 4 / 5;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.area-card__art img {
  transition: transform .6s var(--ease);
}

.area-card:hover .area-card__art {
  box-shadow: 0 18px 36px rgb(22 36 46 / 18%);
}

.area-card:hover .area-card__art img {
  transform: scale(1.04);
}

.area-card__body {
  display: grid;
  gap: 4px;
  padding: 16px 2px 0;
}

.area-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.area-card__title .aplam-i {
  flex: none;
  color: var(--navy-700);
  transition: transform .2s var(--ease);
}

.area-card:hover .area-card__title .aplam-i {
  transform: translateX(4px);
}

.area-card__meta {
  color: var(--navy-600);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.area-card__list {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* Beratung */
.home-consult {
  padding-block: clamp(40px, 6vw, 80px);
  background: var(--navy-800);
  color: var(--on-dark);
}

.home-consult__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}

.home-consult__art {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 260px;
  aspect-ratio: 3 / 2;
  background: var(--navy-800);
}

.home-consult__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-consult__copy h2 {
  max-width: 14ch;
  margin-bottom: 18px;
  color: var(--white);
  font-size: var(--fs-2xl);
}

.home-consult__copy p:not(.eyebrow) {
  max-width: 44ch;
  margin-bottom: 28px;
  font-size: var(--fs-md);
}

@media (max-width: 1100px) {
  /* ab der 4. Kachel 5:4: Motiv etwas höher ansetzen, damit Sägekopf bzw. Regal nicht vom Bogen abgeschnitten werden */
  .area-grid > li:nth-child(n + 4) .area-card__art img {
    object-position: 50% 30%;
  }

  .area-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .area-grid > li {
    grid-column: span 2;
  }

  .area-grid > li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .area-grid > li:nth-child(n + 4) .area-card__art {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 900px) {
  .home-hero__grid,
  .home-consult__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero__art {
    justify-self: center;
    width: min(100%, 440px);
    margin-top: 12px;
  }

  .home-hero__copy h1 {
    max-width: none;
  }

  .home-consult__art {
    border-radius: var(--r-lg);
  }
}

@media (max-width: 700px) {
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-grid > li,
  .area-grid > li:nth-child(n + 4) {
    grid-column: auto;
  }

  .area-grid > li:nth-child(n + 4) .area-card__art {
    aspect-ratio: 4 / 5;
  }

  .area-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .area-grid > li:last-child:nth-child(odd) .area-card__art {
    aspect-ratio: 16 / 10;
  }

  .area-card__title {
    font-size: 1.0625rem;
  }

  .area-card__list {
    display: none;
  }

  .home-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 18px;
  }

  .home-facts > div,
  .home-facts > div + div {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0;
    border: 0;
  }

  .home-facts dt {
    flex: 0 0 7.5rem;
    font-size: 1.125rem;
  }

  .home-facts dd {
    margin: 0;
  }
}

/* Bogenlinie um das Hero-Bild: auf Telefonen lief sie genau an den Bildschirmrändern entlang */
@media (max-width: 600px) {
  .home-hero__art::before {
    inset: -8px -8px auto -8px;
  }
}
