/* ============================================================
   SARO website — composition & motion styles
   Layered on top of the design system (styles.css). Holds the CSS
   that inline React styles can't express: pseudo-elements, sticky
   frosted header, full-page menu, slider, scroll-reveal, red bands.
   All motion is gated behind prefers-reduced-motion at the bottom.
   ============================================================ */

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 60ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER — transparent at top, frosted once scrolled
   ============================================================ */
/* Floating pill header. --header-h is the FULL height (inset + pill) so the
   hero's negative margin and the menu offset stay in sync automatically. */
:root {
  --hdr-inset: clamp(10px, 1.4vw, 18px);
  --hdr-pill: clamp(52px, 4.4vw, 64px);
  --header-h: calc(2 * var(--hdr-inset) + var(--hdr-pill));
}
.saro-hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: var(--hdr-inset) var(--hdr-inset);
}
/* Hide-on-scroll-down / reveal-on-scroll-up. The transform is applied to the
   inner pill (a SIBLING of the fixed .saro-menu), never to .saro-hdr itself —
   a transformed header would become the containing block for the fixed mobile
   menu and shrink it to the header box. */
.saro-hdr.is-hidden .saro-hdr__inner {
  transform: translateY(calc(-100% - var(--hdr-inset) - 10px));
}
.saro-hdr__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--hdr-pill);
  max-width: 1560px;
  margin: 0 auto;
  /* Padding ≳ Pill-Radius, sonst stoßen Nav und CTA an die Rundung */
  padding: 0 clamp(24px, 3vw, 42px);
  background: var(--saro-paper);
  border-radius: 999px;
  box-shadow: 0 6px 26px rgba(20, 24, 26, 0.14);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), transform 0.42s var(--ease);
  will-change: transform;
}
.saro-hdr.is-stuck .saro-hdr__inner { box-shadow: 0 10px 34px rgba(20, 24, 26, 0.22); }
/* Mobile: logo left, burger right */
.saro-hdr--mobile .saro-hdr__inner { grid-template-columns: auto 1fr; }

/* ---- Header contents (dark-on-paper inside the pill) ---- */
.saro-hdr__logo {
  display: flex; align-items: center; justify-self: center;
  padding: 0; border: none; background: none; cursor: pointer;
  line-height: 0; flex-shrink: 0;
}
.saro-hdr__logo img { display: block; height: clamp(20px, 2vw, 27px); width: auto; }
.saro-hdr__logo:focus-visible { outline: 2px solid var(--saro-green); outline-offset: 4px; }
.saro-hdr--mobile .saro-hdr__logo { justify-self: start; }
.saro-hdr__nav { display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: center; }
.saro-hdr__right { justify-self: end; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); flex-shrink: 0; }
.saro-hdr__tel { font-size: 12px; color: var(--text-muted); white-space: nowrap; text-decoration: none; transition: color 0.2s var(--ease); }
.saro-hdr__tel:hover { color: var(--saro-ink); }

/* ---- Language toggle ---- */
.saro-langtoggle { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); }
.saro-langtoggle__opt {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 9px; background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.saro-langtoggle__opt.is-active { background: var(--saro-red); color: #fff; }
.saro-langtoggle__opt:not(.is-active):hover { color: var(--text-strong); }
/* Im dunklen Overlay wieder hell */
.saro-menu .saro-langtoggle { border-color: rgba(255,255,255,0.22); }
.saro-menu .saro-langtoggle__opt { color: rgba(255,255,255,0.5); }
.saro-menu .saro-langtoggle__opt:not(.is-active):hover { color: #fff; }
.saro-langtoggle__opt:focus-visible { outline: 2px solid var(--saro-green-300); outline-offset: 2px; }
.saro-langtoggle--lg .saro-langtoggle__opt { font-size: 13px; padding: 9px 14px; }

/* ---- Nav link: underline eases in from the left ---- */
.saro-navlink {
  position: relative;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
  background: transparent;
  border: none;
  padding: 8px 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.saro-navlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--saro-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.saro-navlink:hover {
  color: var(--text-strong);
}
.saro-navlink:hover::after,
.saro-navlink.is-active::after {
  transform: scaleX(1);
}
.saro-navlink.is-active {
  color: var(--text-strong);
}
.saro-navlink:focus-visible {
  outline: 2px solid var(--saro-green);
  outline-offset: 3px;
}

/* ---- Hamburger button ---- */
.saro-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.saro-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--saro-ink);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.saro-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.saro-burger.is-open span:nth-child(2) { opacity: 0; }
.saro-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   FULL-PAGE MOBILE MENU
   ============================================================ */
.saro-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--saro-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) clamp(24px, 8vw, 56px) 40px;
  visibility: hidden;
  /* Slides in from the left. */
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease), visibility 0s linear 0.42s;
}
.saro-menu.is-open {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.42s var(--ease), visibility 0s;
}
.saro-menu__list { display: flex; flex-direction: column; }
.saro-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 5.5vw, 28px);
  letter-spacing: var(--ls-display);
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(18px, 4vw, 26px) 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
  /* staggered entrance */
  opacity: 0;
  transform: translateX(-14px);
  transition: color 0.2s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: 0s;
}
.saro-menu__item:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.saro-menu.is-open .saro-menu__item {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i, 0) * 0.06s);
}
.saro-menu__item.is-active { color: #fff; }
.saro-menu__item:hover { color: #fff; }
.saro-menu__num {
  font-size: 0.35em;
  color: var(--saro-green-300);
  letter-spacing: 0.1em;
}
.saro-menu__foot { display: flex; flex-direction: column; gap: 18px; }
.saro-menu__tel {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.saro-menu__close {
  position: absolute;
  top: calc((var(--header-h) - 44px) / 2);
  right: clamp(16px, 4vw, 28px);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: #fff;
  z-index: 2;
}
.saro-menu__close:focus-visible { outline: 2px solid var(--saro-green-300); outline-offset: 2px; }

/* ============================================================
   FEATURE SLIDER (EPRS)
   ============================================================ */
.saro-slider { position: relative; }
.saro-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 460px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  cursor: grab;
}
.saro-slider__track::-webkit-scrollbar { display: none; }
.saro-slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.saro-slide {
  scroll-snap-align: start;
  background: var(--surface-raised);
  border: 1px solid var(--border-on-dark);
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  user-select: none;
}
.saro-slide__idx {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--saro-green-300);
  margin-bottom: 18px;
}
.saro-slide__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  letter-spacing: var(--ls-display);
  color: #fff;
  margin: 0 0 12px;
}
.saro-slide__body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-on-dark-dim);
  margin: 0 0 auto;
}
.saro-slide__tag { margin-top: 20px; }
.saro-slide:focus-visible { outline: 2px solid var(--saro-green-300); outline-offset: -2px; }

.saro-slider__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.saro-slider__progress { display: flex; gap: 8px; flex: 1; max-width: 320px; }
.saro-slider__seg {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.3s var(--ease);
  padding: 0;
  border: none;
}
.saro-slider__seg.is-active { background: var(--saro-green); }
.saro-slider__arrows { display: flex; gap: 8px; }
.saro-slider__arrow {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.saro-slider__arrow:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.saro-slider__arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.saro-slider__arrow:focus-visible { outline: 2px solid var(--saro-green-300); outline-offset: 2px; }

/* ============================================================
   BUTTONS — hover feedback is a text flip (Btn), not a colour change.
   Neutralise the DS colour-hover on flip buttons; ghost keeps its shift.
   ============================================================ */
.saro-btn--fx.saro-btn--primary:hover { background: var(--action-bg); }
.saro-btn--fx.saro-btn--dark:hover { background: var(--saro-ink); }
.saro-btn--fx.saro-btn--green:hover { background: var(--saro-green); }
.saro-btn--fx.saro-btn--outline:hover { background: transparent; border-color: var(--border-strong); }
.saro-btn--fx.saro-btn--outline-light:hover { background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.saro-btn--fx.saro-btn--onred:hover { background: var(--saro-paper); color: var(--saro-red); }

/* Text-flip label: two identical copies stacked; roll up on hover. */
.saro-btn--fx .btnflip { display: inline-flex; overflow: hidden; height: 1.15em; line-height: 1.15; }
.saro-btn--fx .btnflip__stack { display: flex; flex-direction: column; transition: transform 0.34s var(--ease); }
.saro-btn--fx .btnflip__t { display: block; height: 1.15em; line-height: 1.15; white-space: nowrap; }
.saro-btn--fx:hover .btnflip__stack { transform: translateY(-1.15em); }

/* ============================================================
   FEATURE CARDS — red by default; hover switches to off-white and
   reveals the fact. (No 3D flip.)
   ============================================================ */
.saro-feat {
  display: flex; flex-direction: column;
  min-height: 250px; padding: 28px;
  background: var(--saro-paper); border: 1px solid var(--border-light);
  cursor: default; outline: none;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.saro-feat__icon { color: var(--saro-green); margin-bottom: auto; transition: color 0.35s var(--ease); }
.saro-feat__name {
  font-family: var(--font-display); font-size: 19px; line-height: 1.15;
  letter-spacing: var(--ls-display); color: var(--text-strong);
  margin-top: 20px; transition: color 0.35s var(--ease);
}
.saro-feat__fact {
  font-family: var(--font-body); font-size: 13.5px; line-height: 1.6;
  color: var(--text-muted); margin: 12px 0 0;
  opacity: 0; transition: opacity 0.35s var(--ease), color 0.35s var(--ease);
}
.saro-feat__tag { margin-top: 16px; opacity: 0; transition: opacity 0.35s var(--ease); }
.saro-feat:hover, .saro-feat:focus-within { background: var(--saro-ink); border-color: var(--border-accent); }
.saro-feat:hover .saro-feat__icon, .saro-feat:focus-within .saro-feat__icon { color: var(--saro-green-300); }
.saro-feat:hover .saro-feat__name, .saro-feat:focus-within .saro-feat__name { color: #fff; }
.saro-feat:hover .saro-feat__fact, .saro-feat:focus-within .saro-feat__fact { opacity: 1; color: var(--text-on-dark-dim); }
.saro-feat:hover .saro-feat__tag, .saro-feat:focus-within .saro-feat__tag { opacity: 1; }
.saro-feat:focus-visible { outline: 2px solid var(--saro-green); outline-offset: 3px; }
/* Touch / reduced-motion have no hover — show the fact on the light card. */
@media (hover: none) {
  .saro-feat__fact { opacity: 1; }
  .saro-feat__tag { opacity: 1; }
}

/* ============================================================
   STAT CARDS (company + stats 2-col section)
   Ink fields with mono data — red is reserved for buttons.
   ============================================================ */
.saro-statcards { display: flex; flex-direction: column; gap: 14px; }
.saro-statcard {
  background: var(--saro-ink); color: var(--saro-paper);
  padding: 22px 26px;
  font-family: var(--font-mono); font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.02em; line-height: 1;
  border-left: 3px solid var(--saro-green);
  transition: background 0.25s var(--ease);
}
.saro-statcard b { font-weight: 700; }
.saro-statcard:hover { background: var(--saro-graphite); }

/* ============================================================
   INK BAND (home contact) — red is buttons-only, so the closing
   conversion section is ink with the red CTA as the single accent.
   ============================================================ */
.saro-band-ink { background: var(--saro-ink); color: #fff; }
.saro-band-ink ::selection { background: rgba(255, 255, 255, 0.24); }

/* ============================================================
   FOOTER REVEAL — the footer slides up + fades in the moment it
   scrolls into view (the reveal happens at the footer itself, not
   earlier). Driven by the shared .reveal IntersectionObserver;
   neutralised under prefers-reduced-motion by the generic .reveal reset.
   ============================================================ */
.saro-footer {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.saro-footer.is-in { opacity: 1; transform: none; }
/* Desktop-only effect: on mobile the footer is simply always visible. */
@media (max-width: 900px) {
  .saro-footer { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   LARGER FOOTER
   ============================================================ */
/* Horizontal padding on the SECTION (outside the 1120 inner), matching the
   body sections, so the footer aligns with the body's outer edge. */
.saro-footer { background: var(--surface-darkest); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 0 clamp(20px, 5vw, 48px); }
.saro-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) 0 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 720px) {
  .saro-footer__inner { grid-template-columns: 1fr 1fr; }
  .saro-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .saro-footer__inner { grid-template-columns: 1fr; }
}
.saro-footer__brand { max-width: 340px; }
.saro-footer__tag {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  margin: 16px 0 0;
}
.saro-footer__contact { margin-top: 18px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, 0.5); }
.saro-footer__contact a { color: var(--saro-green-300); text-decoration: none; }
.saro-footer__made {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.saro-footer__made-dot { width: 8px; height: 8px; background: var(--saro-green); flex-shrink: 0; }
.saro-footer__col-h {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 18px;
}
.saro-footer__link {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  padding: 0 0 12px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.saro-footer__link:hover { color: #fff; }
.saro-footer__bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0;
  margin-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   FAQ — accordion (square UI, hairline dividers, rotating +)
   ============================================================ */
.saro-faq { border-top: 1px solid var(--border-light); }
.saro-faq__item { border-bottom: 1px solid var(--border-light); }
.saro-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.35;
  color: var(--text-strong);
  transition: color 0.2s var(--ease);
}
.saro-faq__q:hover { color: var(--saro-green); }
.saro-faq__q:focus-visible { outline: 2px solid var(--saro-green); outline-offset: 2px; }
.saro-faq__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--saro-green);
  transition: transform 0.3s var(--ease);
}
.saro-faq__item.is-open .saro-faq__icon { transform: rotate(135deg); }
/* Smooth height via grid-rows 0fr → 1fr (no fixed max-height guessing). */
.saro-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
.saro-faq__item.is-open .saro-faq__panel { grid-template-rows: 1fr; }
.saro-faq__panel-inner { overflow: hidden; }
.saro-faq__a {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.06s;
}
.saro-faq__item.is-open .saro-faq__a { opacity: 1; }

/* ============================================================
   BLOG — teaser cards + article "more" cards
   ============================================================ */
.saro-blogcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.saro-blogcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 24, 26, 0.12);
  border-color: var(--border-accent);
}
.saro-blogcard:focus-visible { outline: 2px solid var(--saro-green); outline-offset: 3px; }
.saro-blogcard__title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.saro-blogcard__excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
  flex-grow: 1;
}
.saro-blogcard__more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--saro-green);
  transition: transform 0.24s var(--ease);
}
.saro-blogcard:hover .saro-blogcard__more { transform: translateX(4px); }
.saro-blog__back {
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s var(--ease);
}
.saro-blog__back:hover { color: var(--saro-green-300); }
.saro-blog__back:focus-visible { outline: 2px solid var(--saro-green); outline-offset: 3px; }

/* ============================================================
   PHASE TIMELINE — ghost number fills solid, hairlines draw from
   the number, description clips open beneath the title (one active).
   ============================================================ */
.saro-phase-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  /* Full wrap width so the row + drawn hairlines flush with the outer edge of
     the section above (was capped at 760px). Description keeps its own max-width. */
  border-top: 1px solid var(--border-light);
}
.saro-phase {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  align-items: start;
  padding: 20px 4px 20px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  cursor: default;
  outline: none;
  transition: color 0.3s var(--ease);
}
.saro-phase.is-active { color: var(--text-strong); }
/* Top + bottom accent hairlines that draw out from the number column. */
.saro-phase::before,
.saro-phase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid var(--saro-green);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.1s ease-out 0.16s;
}
.saro-phase::before { top: -1px; }
.saro-phase::after { bottom: -1px; }
.saro-phase.is-active::before,
.saro-phase.is-active::after {
  opacity: 1;
  transform: scaleX(1);
  transition: transform 0.44s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.08s ease-out;
}
.saro-phase__chip {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border: 1px solid var(--saro-green);
  background: transparent;
  color: var(--saro-green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: background 0.32s var(--ease), color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.saro-phase.is-active .saro-phase__chip {
  background: var(--saro-green);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 122, 87, 0.12);
}
.saro-phase__head {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-height: 1.75rem;
}
.saro-phase__title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.15;
  color: currentColor;
}
.saro-phase__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saro-green);
  border: 1px solid var(--border-accent);
  background: rgba(31, 122, 87, 0.06);
  padding: 3px 8px;
  white-space: nowrap;
}
.saro-phase__desc-wrap {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.38s var(--ease), opacity 0.32s var(--ease);
}
.saro-phase.is-active .saro-phase__desc-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.saro-phase__desc-inner { overflow: hidden; min-height: 0; }
.saro-phase__desc {
  margin: 0.6rem 0 0;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-muted);
}
.saro-phase:focus-visible { box-shadow: inset 0 0 0 2px var(--border-accent); }
/* Touch / no-hover: every description open by default, NO per-item hover or
   active styling (chips stay ghost, no drawn lines). Also neutralises sticky
   :hover on other interactive cards so nothing "sticks" after a tap. */
@media (hover: none) {
  .saro-phase__desc-wrap { grid-template-rows: 1fr; opacity: 1; }
  .saro-phase { color: var(--text-strong); }
  .saro-phase.is-active .saro-phase__chip { background: transparent; color: var(--saro-green); box-shadow: none; }
  .saro-phase.is-active::before,
  .saro-phase.is-active::after { opacity: 0; transform: scaleX(0); }
  .saro-blogcard:hover { transform: none; box-shadow: none; border-color: var(--border-light); }
  .saro-blogcard:hover .saro-blogcard__more { transform: none; }
  .saro-faq__q:hover { color: var(--text-strong); }
}

/* ============================================================
   SYSTEM-STATUS PANEL — solid, high-contrast status card
   ============================================================ */
.saro-status {
  background: var(--saro-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* Green accent on the LEFT, consistent with the "Das Unternehmen" stat cards. */
  border-left: 3px solid var(--saro-green);
}
.saro-status__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.saro-status__title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.saro-status__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saro-green-300);
}
.saro-status__led {
  width: 8px;
  height: 8px;
  background: #3ddc97;
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.7);
  animation: saro-status-pulse 2s ease-in-out infinite;
}
.saro-status__rows { list-style: none; margin: 0; padding: 14px 22px 16px; }
.saro-status__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.saro-status__row:last-child { border-bottom: none; }
.saro-status__label { font-size: 13.5px; color: rgba(255, 255, 255, 0.62); }
.saro-status__value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
  text-align: right;
}
.saro-status__value.tone-green { color: var(--saro-green-300); }
.saro-status__value.tone-accent { color: var(--saro-red); }
@keyframes saro-status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============================================================
   TEAM — 4 photo cards in a row + head-office contact strip
   ============================================================ */
.saro-teamgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 900px) { .saro-teamgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .saro-teamgrid { grid-template-columns: 1fr; } }
.saro-teamcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  transition: border-color 0.25s var(--ease);
}
.saro-teamcard:hover { border-color: var(--border-accent); }

/* Head-office contact strip */
.saro-teamoffice {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 22px 24px;
  background: var(--saro-ink);
  border-left: 3px solid var(--saro-green);
}
.saro-teamoffice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--saro-green);
  border: 1px solid var(--border-accent);
}
.saro-teamoffice__name { font-family: var(--font-display); font-size: 18px; color: #fff; }
.saro-teamoffice__role {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--saro-green-300); margin-top: 4px;
}
.saro-teamoffice__contacts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.saro-teamoffice__contacts a {
  font-family: var(--font-mono); font-size: 13px; color: rgba(255, 255, 255, 0.75);
  text-decoration: none; transition: color 0.2s var(--ease);
}
.saro-teamoffice__contacts a:hover { color: var(--saro-green-300); }
@media (max-width: 560px) {
  .saro-teamoffice__contacts { margin-left: 0; width: 100%; flex-direction: column; gap: 6px; }
}
.saro-teamcard__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface-page);
}
.saro-teamcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.saro-teamcard__body { padding: 18px 20px 20px; }
.saro-teamcard__name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-strong);
}
.saro-teamcard__role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--saro-green);
  margin-top: 5px;
}
.saro-teamcard__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.saro-teamcard__contact a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  width: max-content;
  transition: color 0.2s var(--ease);
}
.saro-teamcard__contact a:hover { color: var(--saro-green); }

/* ============================================================
   BACK TO TOP — floating square button, appears after scrolling
   ============================================================ */
.saro-totop {
  position: fixed;
  /* Same inset as the sections' horizontal padding, so the button's right
     edge aligns with the content grid's outer edge (esp. on mobile). */
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 95;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--saro-green);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.2s var(--ease);
}
.saro-totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.saro-totop:hover { background: var(--saro-green-700); }
.saro-totop:focus-visible { outline: 2px solid var(--saro-ink); outline-offset: 3px; }

/* ---------- BLOG masthead top padding (a touch tighter than darkTop) ---------- */
.saro-blog__masthead { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px)); }

/* ---------- BLOG (meta line + body paragraph) ---------- */
.saro-blog__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 12px; }
.saro-blog__meta--ondark { gap: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 0; margin-top: 22px; }
.saro-blog__cat { color: var(--saro-green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.saro-blog__dot { opacity: 0.4; }
.saro-blog__para { font-family: var(--font-body); font-size: 17px; line-height: 1.75; color: var(--text-body); margin-bottom: 22px; }

/* ---------- ADVANTAGE LIST (Owner-OS-style hairline list) ---------- */
.saro-advlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.saro-advitem {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: baseline;
  padding: 18px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.saro-advitem__num { font-family: var(--font-mono); font-size: 12px; color: var(--saro-green-300); letter-spacing: 0.04em; }
.saro-advitem__text { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }

/* ---- Header responsive breakpoint ----
   The old React header used JS (`useBelow(900)`) to conditionally RENDER
   either the desktop nav or the burger button — never both in the DOM at
   once. The static rebuild puts both in the DOM always and switches with
   this media query instead (matches the same 900px breakpoint). */
@media (max-width: 900px) {
  .saro-hdr__nav, .saro-hdr__right { display: none; }
  .saro-hdr__inner { grid-template-columns: auto 1fr; }
  .saro-hdr__logo { justify-self: start; }
}
@media (min-width: 901px) {
  .saro-burger { display: none; }
}

/* ?static screenshot mode: collapse the 100svh hero so full-page captures
   show the sections below (see site/src/js/main.js). */
.is-static .saro-hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); }

/* ---------- 404 ---------- */
.saro-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }

/* ============================================================
   PAGE LAYOUT — ported from the old React screens' inline `style={}`
   objects (SolutionScreen/ProductsScreen/PipeScreen/ContactScreen/
   BlogPostScreen). The Eleventy templates emit plain HTML + classes
   instead of inline style objects.
   ============================================================ */
.saro-section--light { background: var(--surface-page); padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 48px); }
.saro-section--dark { background: var(--surface-dark); padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 48px); }
/* Subpage top hero: dark surface pulled up behind the (transparent) header. */
.saro-section--dark-top { background: var(--surface-dark); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + clamp(56px, 8vw, 88px)) clamp(20px, 5vw, 48px) clamp(56px, 8vw, 88px); }
.saro-wrap { max-width: 1120px; margin: 0 auto; }
.saro-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: 0.005em; color: var(--text-strong); margin: 16px 0 0; white-space: pre-line; }
.saro-h2--ondark { color: #fff; }
.saro-lead-dark { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.58); margin-top: 18px; }
.saro-lead-body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text-body); margin-top: 18px; max-width: 440px; }

/* ---- Hero (home) ---- */
.saro-hero { position: relative; margin-top: calc(-1 * var(--header-h)); min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--saro-ink); padding: calc(var(--header-h) + clamp(16px, 4vh, 40px)) clamp(20px, 5vw, 48px) 0; }
.saro-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.saro-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 24, 26, 0.94) 0%, rgba(20, 24, 26, 0.55) 42%, rgba(20, 24, 26, 0.2) 100%); }
.saro-hero__inner { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 0 clamp(52px, 9vh, 104px); max-width: 720px; }
.saro-hero__eprs { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 22px; }
.saro-hero__h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 7vw, 72px); line-height: 1.04; letter-spacing: 0.005em; color: #fff; margin: 0 0 22px; }
.saro-hero__lead { font-family: var(--font-body); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: rgba(255, 255, 255, 0.72); max-width: 540px; margin-bottom: 32px; }
.saro-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Contact band (home, red/ink CTA strip) ---- */
.saro-cband { padding: clamp(64px, 9vw, 104px) clamp(20px, 5vw, 48px); }
.saro-cband__eyebrow { display: inline-block; font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--saro-green-300); }
.saro-cband__meta { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.saro-cband__link { font-family: var(--font-display); font-size: 18px; color: #fff; text-decoration: none; letter-spacing: 0.01em; }

/* ---- Product feature block (Products screen) ---- */
.saro-featblock { border: 1px solid var(--border-light); margin-bottom: 32px; }
.saro-featblock__head { background: var(--saro-ink); padding: 32px 36px; }
.saro-featblock__badge { display: inline-block; background: var(--saro-green); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; margin-bottom: 10px; }
.saro-featblock__title { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); color: #fff; margin-top: 4px; }
.saro-featblock__sub { font-size: 13px; color: rgba(255, 255, 255, 0.45); margin-top: 6px; }
.saro-featblock__pressure { font-family: var(--font-display); font-size: 26px; color: var(--saro-green-300); margin-top: 14px; }
.saro-featblock__body { background: #fff; padding: 36px; }
.saro-featblock__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(28px, 4vw, 48px); align-items: start; }
.saro-featblock__p { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--text-body); margin-bottom: 14px; }
.saro-featblock__diagram { background: var(--surface-page); border: 1px solid var(--border-light); padding: 24px; margin-bottom: 18px; }
.saro-featblock__diagram-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.saro-featblock__diagram-icons { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--saro-green); padding: 12px 0; }
.saro-featblock__diagram-caption { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--saro-green); margin-top: 8px; }

/* ---- "e.g." label above pipe-range item lists ---- */
.saro-eglabel { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }

/* ---- Contact screen: address/hours/legal columns ---- */
.saro-contact-col__divider { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.saro-contact-col__body { font-size: 15px; color: var(--text-body); line-height: 1.85; }
.saro-contact-col__body a { color: var(--saro-green); text-decoration: none; }
.saro-contact-col__sub { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }

/* ---- Generic section grids/gaps reused across screens ---- */
.saro-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.saro-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; margin-top: 36px; }
.saro-grid-cards--tight { gap: 16px; margin-top: 16px; }
.saro-grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; margin-top: 16px; }
.saro-grid-range { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 22px; margin-top: 16px; }
.saro-grid-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 6vw, 80px); }

/* ---- Range card item list (Pipe screen) ---- */
.saro-itemlist { list-style: none; padding: 0; margin: 0; }
.saro-itemlist li { font-size: 13px; color: var(--text-muted); padding-left: 16px; position: relative; margin-bottom: 7px; line-height: 1.5; }
.saro-itemlist li::before { content: "—"; position: absolute; left: 0; color: var(--saro-green); }

/* ============================================================
   REDUCED MOTION — neutralize everything above
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* NOTE: .saro-menu and .saro-hdr__inner are deliberately NOT neutralised —
     the client wants the menu slide-in and the header hide/show slide on every
     device, including those with "reduce motion" enabled. */
  .saro-hdr, .saro-navlink, .saro-navlink::after, .saro-burger span,
  .saro-menu__item, .saro-footer__link,
  .saro-feat, .saro-feat__icon, .saro-feat__name, .saro-feat__fact,
  .saro-feat__tag, .saro-statcard, .saro-langtoggle__opt,
  .saro-btn--fx .btnflip__stack { transition: none !important; }
  /* Reduced motion: reveal the feature facts without needing hover */
  .saro-feat__fact { opacity: 1 !important; }
  .saro-feat__tag { opacity: 1 !important; }
  .saro-slider__track { scroll-behavior: auto; }
  .saro-menu__item { opacity: 1 !important; transform: none !important; }
  .saro-faq__panel, .saro-faq__icon, .saro-faq__a, .saro-faq__q,
  .saro-blogcard, .saro-blogcard__more { transition: none !important; }
  .saro-faq__a { opacity: 1 !important; }
  .saro-blogcard:hover { transform: none !important; }
  /* Phase timeline: show all descriptions, no line-draw. */
  .saro-phase__desc-wrap { grid-template-rows: 1fr !important; opacity: 1 !important; transition: none !important; }
  .saro-phase { color: var(--text-strong); }
  .saro-phase__chip, .saro-phase::before, .saro-phase::after { transition: none !important; }
  /* Status panel: no LED pulse. */
  .saro-status__led { animation: none !important; }
  /* Back-to-top snaps in (no motion). Footer reveal is intentionally kept. */
  .saro-totop { transition: none !important; }
}
