/* Local preview: layout only. The history text and source photographs stay intact. */
#v25-home #historie.v40-history {
  padding: 64px 0;
}

#v25-home #historie > .v31-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(32px, 4vw, 64px);
  row-gap: 18px;
  align-items: start;
}

#v25-home #historie .v40-history-head {
  grid-column: 1;
  grid-row: 1;
  display: block;
  margin: 0 0 10px;
}

#v25-home #historie .v31-eyebrow {
  margin-bottom: 12px !important;
}

#v25-home #historie .v40-history-head h2 {
  margin: 0;
}

#v25-home #historie .v40-history-hero {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
}

#v25-home #historie .v40-history-story {
  grid-column: 2;
  grid-row: 1 / 4;
  display: block;
  min-width: 0;
  margin: 0;
}

#v25-home #historie .v40-history-story > div:first-child {
  margin-bottom: 26px;
}

#v25-home #historie .v40-history-story h3 {
  margin: 0;
}

#v25-home #historie .v40-history-story > div > p:last-child {
  margin-bottom: 0;
}

#v25-home #historie .v40-history-photos {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  /* Both originals share a 1400px width; inverse heights align their lower edges. */
  grid-template-columns: minmax(0, 969fr) minmax(0, 1006fr);
  gap: 14px;
  align-items: start;
  margin: 0;
}

#v25-home #historie figure,
#v25-home #historie figure img {
  min-width: 0;
  margin: 0;
}

#v25-home #historie figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

#v25-home #historie .v40-history-ending {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 12px 0 0;
  padding-top: 22px;
}

@media (max-width: 1000px) {
  #v25-home #historie.v40-history {
    padding: 48px 0;
  }

  #v25-home #historie > .v31-shell {
    display: block;
  }

  #v25-home #historie .v40-history-head {
    margin-bottom: 26px;
  }

  #v25-home #historie .v40-history-story {
    display: block;
    margin: 30px 0;
  }

  #v25-home #historie .v40-history-story > div:first-child {
    margin-bottom: 22px;
  }

  #v25-home #historie .v40-history-ending {
    margin-top: 26px;
  }
}

@media (max-width: 700px) {
  #v25-home #historie.v40-history {
    padding: 40px 0;
  }

  #v25-home #historie .v40-history-story {
    display: block;
    margin: 26px 0;
  }

  #v25-home #historie .v40-history-story > div:first-child {
    margin-bottom: 22px;
  }

  #v25-home #historie .v40-history-photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
