/* AdNora V3: page styles for preise.html only. Loaded after css/site.css; uses its tokens only. */

/* ================================================================ Hero (photo: crane-blue) */
/* Keep the crane jib in view on wide screens; the copy sits on the dark lower left. */
.page-hero--preise .page-hero-media img { object-position: 40% 35%; }

/* ================================================================ Preisfaktoren (#faktoren) */
/* Four equal plates: icon and index on top, then title and text on one baseline across the row. */
.factors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.factor {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px) clamp(22px, 2.2vw, 30px) clamp(26px, 2.6vw, 36px);
  overflow: hidden;
  border-radius: var(--r-core);
  background:
    radial-gradient(70% 45% at 0% 0%, var(--accent-soft), transparent 75%),
    var(--surface);
  box-shadow: inset 0 1px 1px var(--core-highlight), 0 0 0 1px var(--line);
}
.factor-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.factor-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-inset);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 var(--core-highlight);
  font-size: 24px;
  color: var(--accent-text);
}
.factor-num {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--muted);
}
.factor-title {
  margin-top: clamp(40px, 4.4vw, 64px);
  font-size: var(--fs-21);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.factor-text {
  margin-top: 10px;
  font-size: var(--fs-17);
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 1199px) {
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .factors { grid-template-columns: minmax(0, 1fr); }
  .factor-title { margin-top: 28px; }
}

/* ================================================================ Start mit einem Projekt (#start) */
/* Timeline: four stations on one line (numbered dots, mono label, title, text).
   Each station draws the connector to the next one; vertical below 1024px.
   Reveal: the stations fade up (site.js adds .is-in to [data-reveal]), then the red connector
   draws. Without js or with reduced motion everything is simply shown. */
.timeline {
  --tl-dot: 44px;
  --tl-gap: clamp(24px, 3vw, 44px);
  --tl-space: 12px;   /* air between a dot and the connector */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tl-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--tl-dot);
  height: var(--tl-dot);
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  font-weight: 600;
  line-height: 1;
}
/* Connector to the next station: ::before is the quiet track, ::after the red line that draws. */
.timeline-step:not(:last-child)::before,
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--tl-dot) / 2 - 1px);
  left: calc(var(--tl-dot) + var(--tl-space));
  right: calc(var(--tl-space) - var(--tl-gap));
  height: 2px;
  border-radius: 2px;
}
.timeline-step:not(:last-child)::before { background: var(--line-2); }
.timeline-step:not(:last-child)::after {
  background: linear-gradient(90deg, var(--accent-fill), color-mix(in srgb, var(--accent-fill) 55%, transparent));
  transform-origin: 0 50%;
}
.timeline-label {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.timeline-title {
  margin-top: 10px;
  font-size: var(--fs-21);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.timeline-text {
  margin-top: 10px;
  max-width: 34ch;
  font-size: var(--fs-17);
  line-height: 1.55;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on .timeline-step:not(:last-child)::after {
    transform: scaleX(0);
    transition: transform .6s var(--ease-out) calc(var(--reveal-delay, 0ms) + 160ms);
  }
  .reveal-on .timeline-step.is-in:not(:last-child)::after { transform: none; }
  .reveal-on .timeline-step .timeline-dot {
    transform: scale(.6);
    transition: transform .5s var(--ease-spring) var(--reveal-delay, 0ms);
  }
  .reveal-on .timeline-step.is-in .timeline-dot { transform: none; }
}

/* Vertical below 1024px: dots in a left rail, the connector runs down to the next dot. */
@media (max-width: 1023px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline-step {
    display: grid;
    grid-template-columns: var(--tl-dot) minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    padding-bottom: 40px;
  }
  .timeline-step:last-child { padding-bottom: 0; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 3; }
  .timeline-label,
  .timeline-title,
  .timeline-text { grid-column: 2; }
  .timeline-label { margin-top: 13px; }
  .timeline-text { max-width: 52ch; }
  .timeline-step:not(:last-child)::before,
  .timeline-step:not(:last-child)::after {
    top: calc(var(--tl-dot) + var(--tl-space));
    bottom: var(--tl-space);
    left: calc(var(--tl-dot) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--accent-fill), color-mix(in srgb, var(--accent-fill) 55%, transparent));
    transform-origin: 50% 0;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .reveal-on .timeline-step:not(:last-child)::after { transform: scaleY(0); }
}

.timeline-foot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(48px, 5.6vw, 80px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.timeline-foot p {
  max-width: 64ch;
  padding-top: 8px;
  font-size: var(--fs-17);
  line-height: 1.6;
  color: var(--muted);
}

/* Keep compounds like "E-Mails" on one line in narrow columns. */
.nowrap { white-space: nowrap; }

/* ================================================================ Pilotpartner (#pilot) */
/* Same rhythm as the section heads above: a little more air between title and text. */
#pilot .meet-copy .lead { margin-top: clamp(16px, 2vw, 24px); }
