/* ═══════════════════════════════════════
   HISTORY PAGE — Kohler AG
   Distinct from Grollimund: horizontal accent,
   dark hero, alternating layout, red accents
═══════════════════════════════════════ */

/* ── Hero ── */
.history-hero {
  position: relative;
  min-height: clamp(540px, 75vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) 5% clamp(5rem, 8vh, 7rem);
  background: #f5f6f8;
  overflow: hidden;
}

.history-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e8e8e8;
}

.history-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: end;
}

.history-hero-right {
  padding-bottom: 0.2rem;
}

.history-hero-eyebrow {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #999;
  margin: 0 0 2rem;
  display: block;
}

.history-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #111111;
  margin: 0;
  max-width: none;
}

.history-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #777777;
  max-width: none;
  margin: 0;
}

.history-hero-year {
  position: absolute;
  right: -0.05em;
  bottom: -0.18em;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 0, 0, 0.035);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .history-hero-inner {
    grid-template-columns: 1fr;
    /* gleicher Abstand Titel↔Untertitel wie auf der Team-Seite */
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }
  .history-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  .history-hero-year {
    display: none;
  }
}

@media (max-width: 600px) {
  .history-hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .history-hero-sub {
    font-size: 0.95rem;
    line-height: 1.75;
  }
}

@media (max-width: 380px) {
  .history-hero-title {
    font-size: 1.6rem;
  }
}

/* Block Reveal for Hero Title */
.block-line-wrapper {
  position: relative;
  display: block;
}

.block-line {
  position: relative;
  display: block;
}

.block-revealer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  z-index: 1;
}

/* ── Intro Section ── */
.history-intro {
  background: var(--surface);
  padding: clamp(4rem, 8vh, 7rem) 5%;
}

.history-intro-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.history-intro-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
  color: var(--ink-muted);
}

.history-intro-text strong {
  color: var(--ink);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   PAGE SECTION SPLIT — reusable across all subpages
   Light, editorial two-column layout.
   Usage: add class "page-section-split" to any <section>
══════════════════════════════════════════════ */
.page-section-split {
  background: #f5f6f8;
  padding: clamp(5rem, 10vh, 8rem) 5%;
}

.page-section-split__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

/* Left column */
.page-section-split__left {
  position: static;
}

.page-section-split__inner {
  opacity: 1;
  transform: none;
}

.page-section-split__label {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #6b6560;
  margin: 0 0 1.75rem;
}

.page-section-split__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: #2a2520;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

/* Right column */
.page-section-split__right p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #4a4540;
  margin: 0 0 1.5rem;
}

.page-section-split__right p:last-child {
  margin-bottom: 0;
}

/* Mobile: stack columns */
@media (max-width: 700px) {
  .page-section-split__inner {
    grid-template-columns: 1fr;
  }
  .page-section-split__left {
    position: static;
  }
}

/* ═══════════════════════════════════════
   TIMELINE
═══════════════════════════════════════ */
.tl-section {
  background: var(--surface);
  padding: clamp(5rem, 10vh, 8rem) 0;
  position: relative;
}

.tl-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(3rem, 6vh, 5rem);
  padding: 0 5%;
}

.tl-header-label {
  font-family: "Courier New", "Courier", monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #6b6560;
  margin: 0 0 1.75rem;
}

.tl-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #2a2520;
  margin: 0;
  line-height: 1.1;
}

/* Timeline track */
.tl-track {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
}

/* Vertical spine */
.tl-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--stroke-light),
    var(--stroke),
    var(--stroke-light)
  );
}

/* Single entry */
.tl-entry {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: start;
  margin-bottom: clamp(3rem, 5vh, 4.5rem);
  position: relative;
}

.tl-entry:last-child {
  margin-bottom: 0;
}

/* Dot on spine */
.tl-dot {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.tl-dot::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 5px var(--stroke-light);
  transition: all 0.4s var(--ease-out);
}

.tl-entry.is-active .tl-dot::before {
  background: var(--brand);
  box-shadow:
    0 0 0 4px var(--surface),
    0 0 0 5px var(--brand),
    0 0 20px rgba(212, 26, 26, 0.2);
  transform: scale(1.15);
}

/* Content side */
.tl-content {
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(28px);
}

/* Left entries: content on left */
.tl-entry:nth-child(odd) .tl-content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.tl-entry:nth-child(odd) .tl-dot {
  grid-column: 2;
  grid-row: 1;
}
.tl-entry:nth-child(odd) .tl-media {
  grid-column: 3;
  grid-row: 1;
}

/* Right entries: content on right */
.tl-entry:nth-child(even) .tl-content {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}
.tl-entry:nth-child(even) .tl-dot {
  grid-column: 2;
  grid-row: 1;
}
.tl-entry:nth-child(even) .tl-media {
  grid-column: 1;
  grid-row: 1;
}

.tl-year {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.35rem;
}

.tl-milestone {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.tl-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.85;
  color: #4a4540;
  margin: 0;
}

/* Media side */
.tl-media {
  padding: 0 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: scale(0.94);
}

.tl-media img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: contain;
}

/* ── Eras divider ── */
.tl-era {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(2rem, 4vh, 3rem) 0;
  margin-bottom: clamp(3rem, 5vh, 4.5rem);
  position: relative;
}

.tl-era::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--stroke),
    transparent
  );
}

.tl-era-badge {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  background: var(--surface);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--stroke-light);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 860px) {
  .tl-track::before {
    left: 24px;
  }

  .tl-entry {
    grid-template-columns: 48px 1fr;
  }

  .tl-entry:nth-child(odd) .tl-content,
  .tl-entry:nth-child(even) .tl-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    padding: 0 0 0 1rem;
  }

  .tl-entry:nth-child(odd) .tl-dot,
  .tl-entry:nth-child(even) .tl-dot {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .tl-entry:nth-child(odd) .tl-media,
  .tl-entry:nth-child(even) .tl-media {
    grid-column: 2;
    grid-row: 2;
    padding: 1rem 0 0 1rem;
  }

  .tl-media img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .tl-year {
    font-size: 2rem;
  }
}
