:root {
  --ink: #f5f3ee; /* now used as the LIGHT text/line color on black */
  --paper: #faf9f6; /* headline white */
  --body-text: #e2ded4; /* soft warm off-white for paragraph copy */
  --smoke: #a6a29a; /* captions, dates, quiet meta */
  --hairline: #333330; /* rules & dividers, visible on black */

  --serif: "Times New Roman", Times, "Liberation Serif", Georgia, serif;
  --sans-meta:
    "Helvetica Neue", Arial, sans-serif; /* used sparingly, meta only */

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(4rem, 10vw, 9rem);
  --box-radius: 12px; /* Eckenrundung der schwarzen Boxen */
  --box-inline-padding: clamp(1.5rem, 4vw, 3rem);
  --box-gap: clamp(1.5rem, 4vw, 2.5rem); /* Abstand zwischen einzelnen Boxen */
}

/* ---------------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f2ede1;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Nur die Story-/Content-Bilder werden quadratisch, nicht Logo/Icons */
.ourVision .imgBox img,
.theBeginning .imgBox img,
.storyBoxTop img,
.storyBoxBottom img {
  width: 100%;
  aspect-ratio: 1 / 1; /* alle Content-Bilder quadratisch */
  object-fit: cover; /* sauberer Zuschnitt statt Verzerrung */
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--paper);
  margin: 0 0 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--paper);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------------
   Page frame
   --------------------------------------------------------------------- */
.mainWrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------------
   Section eyebrow — every chapter heading gets a small hour-marker tick
   and wide-tracked caps. This is the one recurring signature device.
   --------------------------------------------------------------------- */
.storyBoxTop h2,
.storyBoxBottom h2,
.visionBox h2,
.beginningBox h2 {
  position: relative;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--sans-meta);
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Intro — Our Vision / The Beginning
   .intro ist nur noch ein Spacing-Wrapper OHNE eigenen Hintergrund.
   .ourVision und .theBeginning sind jetzt JEWEILS eine eigene,
   in sich geschlossene schwarze Box — dadurch kann kein Panel mehr
   "aus der Box rutschen", jede Box enthält nur ein Bild-Text-Paar.
   --------------------------------------------------------------------- */
.intro {
  margin: clamp(2rem, 6vw, 4rem) 0;
}

.visionBox,
.beginningBox {
  max-width: var(--measure);
  min-width: 0; /* erlaubt dem Grid-Element zu schrumpfen statt zu überlaufen */
}

.visionText,
.beginningText {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  color: var(--body-text);
}

.ourVision,
.theBeginning {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  background-color: #000000;
  border-radius: var(--box-radius);
  padding: clamp(2.5rem, 6vw, 5rem) var(--box-inline-padding);
  overflow: hidden; /* Sicherheitsnetz: nichts kann visuell aus der Box ragen */
}

.ourVision {
  margin-bottom: var(--box-gap);
}

.theBeginning {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.theBeginning .visionBox,
.theBeginning .beginningBox {
  order: 2;
}

.theBeginning .imgBox {
  order: 1;
}

.ourVision .imgBox,
.theBeginning .imgBox {
  min-width: 0; /* erlaubt dem Grid-Element zu schrumpfen statt zu überlaufen */
}

/* ---------------------------------------------------------------------
   Story chapters (story1 – story7)
   Box: alle sieben Kapitel bilden zusammen EINE durchgehende schwarze Box.
   --------------------------------------------------------------------- */
section[class^="story"] {
  position: relative;
  background-color: #000000;
  padding-block: var(--section-space);
  padding-inline: var(--box-inline-padding);
  margin: 0;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden; /* Sicherheitsnetz: nichts kann visuell aus der Box ragen */
}

section[class^="story"]:last-of-type {
  border-bottom: none; /* letztes Kapitel braucht keine Trennlinie am Boxende */
}

section[class^="story"]::before {
  /* the dial spine — a thin vertical thread through the chapter */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
  transform: translateX(-50%);
}

section.story1 {
  border-top-left-radius: var(--box-radius);
  border-top-right-radius: var(--box-radius);
  margin-top: clamp(2rem, 6vw, 4rem);
}

section.story7 {
  border-bottom-left-radius: var(--box-radius);
  border-bottom-right-radius: var(--box-radius);
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.storyBoxTop,
.storyBoxBottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.storyBoxTop {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.storyBoxTop img {
  grid-column: 1;
  grid-row: 1;
}
.storyBoxTop h2,
.storyBoxTop p {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.storyBoxTop h2 {
  grid-row: 1;
  align-self: start;
}
.storyBoxTop p {
  align-self: start;
}

.storyBoxBottom img {
  grid-column: 2;
  grid-row: 1;
}
.storyBoxBottom h2,
.storyBoxBottom p {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.storyBoxTop h2,
.storyBoxBottom h2 {
  grid-row: 1;
  align-self: start;
}

.storyBoxTop p,
.storyBoxBottom p {
  grid-row: 2;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--body-text);
  max-width: 46ch;
}

.storyBoxTop h2,
.storyBoxTop p {
  grid-column: 2;
}
.storyBoxBottom h2,
.storyBoxBottom p {
  grid-column: 1;
}

.storyBoxTop img,
.storyBoxBottom img {
  grid-row: 1 / span 2;
  min-width: 0;
}

/* ---------------------------------------------------------------------
   Journey / closing CTA
   Box: eigene schwarze Box, zentriert und vom Seitenhintergrund abgesetzt
   --------------------------------------------------------------------- */
.journey {
  max-width: 62ch;
  margin: clamp(2rem, 6vw, 4rem) auto;
  text-align: center;
  background-color: #000000;
  border-radius: var(--box-radius);
  padding: clamp(4rem, 10vw, 8rem) var(--box-inline-padding);
  overflow: hidden; /* Sicherheitsnetz: nichts kann visuell aus der Box ragen */
}

.journey h2 {
  justify-content: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-weight: 400;
}

.journey h2::before {
  display: none;
}

.journey p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--body-text);
  margin-bottom: 2rem;
}

.journey a {
  display: inline-block;
  padding: 0.85em 2em;
  border: 1px solid var(--ink);
  font-family: var(--sans-meta);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.journey a:hover,
.journey a:focus-visible {
  background: var(--ink);
  color: #000000;
}

.smallScreenHeaderLogo {
  width: clamp(190px, 30vw, 300px);
}

.bigHeaderLogo {
  width: 300px;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* =========================================================================
   RESPONSIVE — tablet
   ========================================================================= */
@media (max-width: 1024px) {
  .storyBoxTop p,
  .storyBoxBottom p {
    max-width: none;
  }
}

/* =========================================================================
   RESPONSIVE — mobile
   Stack every panel: image first, text below. Spine and grid math retire.
   Boxen werden randlos (full-bleed), Ecken eckig, Abstände kompakter.
   ========================================================================= */
@media (max-width: 768px) {
  :root {
    --box-radius: 0; /* auf dem Handy keine Rundung, wirkt sauberer randlos */
    --section-space: clamp(2.5rem, 9vw, 3.5rem); /* kompaktere Boxen */
    --box-inline-padding: 1.5rem;
    --box-gap: 1.25rem;
  }

  body {
    font-size: 16px;
  }

  .mainWrapper {
    padding: 0 1.25rem;
  }

  /* Schwarze Boxen bis an den Bildschirmrand ziehen (full-bleed),
     statt zusätzlich zum mainWrapper-Padding eingerückt zu sein */
  .ourVision,
  .theBeginning,
  section[class^="story"],
  .journey {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
  }

  .intro {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .ourVision,
  .theBeginning {
    padding-block: clamp(3rem, 12vw, 4rem);
  }

  .journey {
    max-width: none;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-block: clamp(3rem, 12vw, 4rem);
  }

  section.story1 {
    margin-top: 1.5rem;
  }

  section.story7 {
    margin-bottom: 1.5rem;
  }

  section[class^="story"]::before {
    display: none;
  }

  .ourVision,
  .theBeginning,
  .storyBoxTop,
  .storyBoxBottom {
    display: block;
  }

  .theBeginning .visionBox,
  .theBeginning .beginningBox,
  .theBeginning .imgBox {
    order: initial;
  }

  .storyBoxTop,
  .storyBoxBottom {
    margin-bottom: 2.25rem;
  }

  section[class^="story"] .storyBoxTop:last-child,
  section[class^="story"] .storyBoxBottom:last-child {
    margin-bottom: 0;
  }

  .storyBoxTop img,
  .storyBoxBottom img,
  .ourVision .imgBox img,
  .theBeginning .imgBox img {
    margin-bottom: 1.25rem;
  }

  .storyBoxTop h2,
  .storyBoxTop p,
  .storyBoxBottom h2,
  .storyBoxBottom p {
    grid-column: auto;
    grid-row: auto;
  }

  .journey a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .storyBoxTop h2,
  .storyBoxBottom h2,
  .visionBox h2,
  .beginningBox h2 {
    font-size: 1rem;
  }
}
