/* =========================================================================
   HOSTARO — Swiss Editorial design system
   Paper & ink, one accent, visible grid, hairlines, mono microtype.
   ========================================================================= */
:root {
  /* Paper & ink */
  --paper:      #F6F5F1;
  --paper-2:    #EFEDE7;
  --ink:        #0D0D0F;
  --ink-soft:   #54524C;
  --line:       #0D0D0F14; /* ~8% black hairline */

  /* Accent — Vermillion. --accent is fills/dots only, --accent-ink is text (AA-safe) */
  --accent:     #FF4A1C;
  --accent-ink: #C53210;

  --font-display: "Clash Display", "Space Grotesk", system-ui, sans-serif;
  --font-text:     "General Sans", "Inter", system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, monospace;

  --s-1:4px; --s-2:8px; --s-3:16px; --s-4:24px;
  --s-5:40px; --s-6:64px; --s-7:104px; --s-8:168px;

  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --grid-columns: 12;
  --grid-gap: var(--s-4);
  --content-max: 1280px;
  --outer-margin: clamp(24px, 7vw, 104px);
}

/* =========================================================================
   Reset / base
   ========================================================================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: 90px; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

.icon-defs { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

/* =========================================================================
   Grid primitive
   ========================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  column-gap: var(--grid-gap);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--outer-margin);
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section--dark {
  background: var(--ink);
  color: var(--paper);
  border-top: none;
}
.section--dark .section__label { color: #ffffff66; }

/* Section label — mono microtype device */
.section__label {
  grid-column: 1 / 13;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.section__label-number { font-weight: 600; }

.section__headline {
  grid-column: 1 / 8;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
}
.btn--primary:hover { background: var(--accent-ink); }
.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light {
  border-color: #ffffff55;
  color: var(--paper);
}
.btn--ghost-light:hover { background: #ffffff14; border-color: #ffffff; }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 0;
}
.btn--link:hover { color: var(--accent-ink); }

/* =========================================================================
   Logo — typographic wordmark, "o" rendered as a ring + accent dot
   ========================================================================= */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__o {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  border: 0.12em solid var(--ink);
  position: relative;
  vertical-align: -0.05em;
  margin: 0 0.02em;
}
.logo__o::after {
  content: "";
  position: absolute;
  width: 0.22em; height: 0.22em;
  border-radius: 50%;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.logo--reversed { color: var(--paper); }
.logo--reversed .logo__o { border-color: var(--paper); }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease), padding 220ms var(--ease);
}
.site-header--scrolled {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  grid-column: 1 / 13;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  transition: height 220ms var(--ease);
}
.site-header--scrolled .site-header__inner { height: 72px; }

.site-nav__list {
  display: none;
  align-items: center;
  gap: var(--s-5);
}
.site-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}
.site-nav__link:hover { color: var(--ink); border-color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: var(--s-4); }
.site-header__login { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}
.nav-toggle__bar {
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.site-nav-mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 320ms var(--ease);
  z-index: 99;
  padding: 100px var(--s-5) var(--s-5);
  overflow-y: auto;
}
.site-nav-mobile.is-open { transform: translateX(0); }
.site-nav-mobile__list { display: flex; flex-direction: column; }
.site-nav-mobile__list li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav-mobile__backdrop {
  position: fixed; inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
  z-index: 98;
}
.site-nav-mobile__backdrop.is-open { opacity: 0.32; pointer-events: auto; }

@media (min-width: 1024px) {
  .site-nav__list { display: flex; }
  .site-header__login { display: inline-flex; }
  .nav-toggle { display: none; }
  .site-nav-mobile, .site-nav-mobile__backdrop { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero__eyebrow {
  grid-column: 1 / 13;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}
.hero__title {
  grid-column: 1 / 7;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title .accent-cut { color: var(--accent-ink); }

.hero__subtitle-block { grid-column: 8 / 13; align-self: end; padding-bottom: var(--s-2); }
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero__actions { display: flex; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }

.hero__visual-row {
  grid-column: 1 / 13;
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--grid-gap);
  align-items: end;
}
.hero__diagram-wrap { grid-column: 1 / 8; }
.hero__diagram { width: 100%; height: auto; color: var(--ink); }
.hero__diagram-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 420ms var(--ease);
}
.hero__diagram.is-drawn .hero__diagram-label { opacity: 1; }
.hero__diagram-node {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.hero__diagram.is-drawn .hero__diagram-node { opacity: 1; transform: scale(1); }

.status-module {
  grid-column: 9 / 13;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  padding: var(--s-4);
  display: grid;
  gap: var(--s-2);
  will-change: transform;
}
.status-module__header {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-1);
  color: var(--ink-soft);
}
.status-module__row { display: flex; justify-content: space-between; gap: var(--s-3); }
.status-module__row dt { color: var(--ink-soft); }
.status-module__row dd { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (min-width: 1024px) {
  .hero__diagram-wrap { grid-column: 1 / 9; }
  .status-module { grid-column: 9 / 13; }
}

/* Headline line-reveal mask */
.reveal-line { display: block; overflow: hidden; }
.reveal-line__inner {
  display: block;
  transform: translateY(110%);
  transition: transform 700ms var(--ease);
}
.reveal-line.is-revealed .reveal-line__inner { transform: translateY(0); }

/* =========================================================================
   Trust bar
   ========================================================================= */
.trust-bar { padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.trust-bar__grid { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  border-left: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-bar__item:first-child { border-left: none; padding-left: 0; }
.trust-bar__icon { width: 22px; height: 22px; color: var(--ink); flex-shrink: 0; }

@media (max-width: 767px) {
  .trust-bar__grid { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .trust-bar__item { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-3); }
  .trust-bar__item:first-child { border-top: none; padding-top: 0; }
}

/* =========================================================================
   Problem / About — asymmetric text sections
   ========================================================================= */
.problem__body, .about__body { grid-column: 8 / 13; }
.problem__lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
.problem__text, .about__paragraph {
  margin-top: var(--s-3);
  color: var(--ink-soft);
}
.about__paragraph + .about__paragraph { margin-top: var(--s-3); }

@media (min-width: 1024px) {
  .problem__body, .about__body { grid-column: 7 / 13; }
}

/* =========================================================================
   Leistungen — varied-span hairline grid
   ========================================================================= */
.services__grid {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  grid-column: span 3;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) var(--s-4);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.service-card--wide { grid-column: span 6; }
.service-card:hover { border-color: var(--ink); transform: rotate(0.4deg); }
.service-card__icon { width: 32px; height: 32px; color: var(--ink); margin-bottom: var(--s-4); }
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.service-card__text { color: var(--ink-soft); font-size: 0.9375rem; max-width: 32ch; }
.service-card__arrow {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
  opacity: 0;
  transform: translateX(0);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.service-card:hover .service-card__arrow { opacity: 1; transform: translateX(4px); }

@media (max-width: 1023px) {
  .service-card, .service-card--wide { grid-column: span 6; }
}
@media (max-width: 767px) {
  .service-card, .service-card--wide { grid-column: 1 / -1; }
}

/* =========================================================================
   Preis — dark section
   ========================================================================= */
.pricing-card {
  grid-column: 3 / 11;
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff2a;
  padding: var(--s-6) var(--s-6);
}
.pricing-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 12px;
  margin-bottom: var(--s-4);
}
.pricing-card__title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.pricing-card__price { margin-top: var(--s-3); display: flex; align-items: baseline; gap: var(--s-2); }
.pricing-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pricing-card__period { color: #ffffff88; }
.pricing-card__tagline { margin-top: var(--s-3); color: #ffffffaa; max-width: 46ch; }

.pricing-card__list {
  margin: var(--s-6) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-5);
}
.pricing-card__list li { display: flex; align-items: center; gap: var(--s-2); font-size: 0.9375rem; }
.pricing-card__check { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.pricing-card__note { margin-top: var(--s-4); color: #ffffff77; font-size: 0.875rem; }

.pricing-card__shine {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .pricing-card__shine.is-active { animation: shine-edge 1.1s var(--ease); }
}
@keyframes shine-edge {
  0% { transform: scaleY(0); }
  60% { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}

@media (max-width: 1023px) {
  .pricing-card { grid-column: 1 / 13; padding: var(--s-5); }
}
@media (max-width: 767px) {
  .pricing-card__list { grid-template-columns: 1fr; }
}

/* =========================================================================
   Vorteile — large mono numerals, no icons
   ========================================================================= */
.advantages__grid {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.advantage-block {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) var(--s-5);
}
.advantage-block__number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-soft);
  margin-bottom: var(--s-3);
}
.advantage-block__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.advantage-block__text { color: var(--ink-soft); max-width: 38ch; }

@media (max-width: 767px) {
  .advantages__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Prozess — vertical filling timeline
   ========================================================================= */
.process__wrap { grid-column: 1 / 13; position: relative; }
.process__list {
  position: relative;
  padding-left: 64px;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}
.process__track {
  position: absolute;
  left: 21px; top: 4px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.process__track-fill {
  width: 100%;
  height: 0%;
  background: var(--accent);
}
.process__step {
  position: relative;
  display: flex;
  gap: var(--s-4);
  opacity: 0.45;
  transition: opacity 320ms var(--ease);
}
.process__step.is-active { opacity: 1; }
.process__number {
  position: absolute;
  left: -64px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 320ms var(--ease), border-color 320ms var(--ease);
}
.process__step.is-active .process__number { color: var(--accent-ink); border-color: var(--accent-ink); }
.process__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; margin-bottom: 4px; }
.process__text { color: var(--ink-soft); font-size: 0.9375rem; }

/* =========================================================================
   CTA — dark
   ========================================================================= */
.cta { text-align: left; }
.cta__title {
  grid-column: 1 / 10;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.cta__text { grid-column: 1 / 9; margin-top: var(--s-4); color: #ffffffaa; font-size: 1.125rem; }
.cta__actions { grid-column: 1 / 9; margin-top: var(--s-5); display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #ffffffaa; padding-top: var(--s-7); }
.site-footer__grid { grid-column: 1 / 13; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.site-footer__tagline { margin-top: var(--s-3); max-width: 30ch; font-size: 0.9375rem; }
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff66;
  margin-bottom: var(--s-3);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9375rem; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom {
  grid-column: 1 / 13;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-top: 1px solid #ffffff1a;
  font-size: 0.8125rem;
  color: #ffffff66;
}
.site-footer__legal { display: flex; gap: var(--s-4); }
.site-footer__legal a:hover { color: #fff; }

@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Mobile collapse — flatten asymmetry uniformly
   ========================================================================= */
@media (max-width: 767px) {
  .hero__title,
  .hero__subtitle-block,
  .hero__diagram-wrap,
  .status-module,
  .problem__body,
  .about__body,
  .section__headline,
  .cta__title,
  .cta__text,
  .cta__actions {
    grid-column: 1 / -1 !important;
  }
  .hero__subtitle-block { margin-top: var(--s-4); }
  .hero__visual-row { row-gap: var(--s-5); }
  .status-module { margin-top: var(--s-5); }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal-line__inner { transition: opacity 300ms ease; transform: none !important; opacity: 0; }
  .reveal-line.is-revealed .reveal-line__inner { opacity: 1; }
  .reveal { transition-duration: 0.01ms !important; transform: none !important; }
  .service-card:hover { transform: none; }
  .pricing-card__shine.is-active { animation: none !important; }
}

/* Generic scroll-reveal (body content, unchanged mechanism from prior build) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: calc(var(--delay, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
