/* ==========================================================================
   Infinity Impact – Website 2026
   Prozessautomatisierung & Beratung

   Farbschema: vollständig aus dem Logo abgeleitet.
   Logo-Anthrazit #373736 + Weiß. Alles dazwischen sind reine Grauwerte.
   Es gibt bewusst KEINEN zweiten Farbton.
   ========================================================================== */

/* ---------- Schrift (selbst gehostet, kein Google Fonts) ---------- */
@font-face { font-family: 'Fustat'; src: url('../fonts/Fustat-Light.woff2') format('woff2');    font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fustat'; src: url('../fonts/Fustat-Regular.woff2') format('woff2');  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fustat'; src: url('../fonts/Fustat-Medium.woff2') format('woff2');   font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fustat'; src: url('../fonts/Fustat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fustat'; src: url('../fonts/Fustat-Bold.woff2') format('woff2');     font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink:        #373736;  --ink-deep:   #262625;  --ink-card: #454543;
  --ink-line:   #575755;  --ink-line-2: #6A6A67;

  --white:      #FFFFFF;  --surface:    #F5F5F4;  --surface-2: #EDEDEA;
  --line:       #E2E2DF;  --line-hover: #CFCFCB;  --rule:      #DCDCD8;

  --text:       #373736;  --text-body:  #454543;  --text-muted: #6B6B68;
  --numeral:    #8A8A86;

  --on-dark:       #FFFFFF; --on-dark-muted: #C2C2BE; --on-dark-dim: #ABABA7;

  --radius: 14px;  --radius-lg: 20px;
  --maxw:   1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease:   cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: 'Fustat', system-ui, -apple-system, sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: #000; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--white); color: var(--ink); padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skiplink:focus { left: 0; }

/* ---------- Bausteine ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--dark { background: var(--ink); color: var(--on-dark); }
/* Buttons ausnehmen: sonst ueberschreibt diese Regel die Textfarbe
   eines hellen Buttons auf dunklem Grund (weiss auf weiss). */
.section--dark a:not(.btn) { color: var(--on-dark); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.section--dark .eyebrow,
.hero .eyebrow { color: var(--on-dark); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Display-Typo: Fustat Light in grossen Graden */
.display { font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(40px, 7vw, 84px); }
.h2 { font-weight: 300; letter-spacing: -0.025em; line-height: 1.12; font-size: clamp(30px, 4.4vw, 54px); margin-top: 16px; }
.h2--narrow { max-width: 21ch; }
.h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.55; color: var(--text-muted); }
.lead--sm { font-size: 17px; }
.section--dark .lead,
.hero .lead { color: var(--on-dark-muted); }
.section--dark .lead strong { color: var(--on-dark); font-weight: 600; }
.muted { color: var(--text-muted); }
.big { font-size: 19px; line-height: 1.65; color: var(--text-body); }
.ruled { border-top: 1px solid var(--ink-line); padding-top: 28px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px; border-radius: 999px;
  font-family: inherit; font-size: 17px; font-weight: 600; text-decoration: none;
  /* background und font muessen gesetzt sein: auf <button> greift sonst der
     graue Standardhintergrund des Browsers, und ein Ablehnen-Knopf darf
     niemals schwaecher aussehen als der Zustimmen-Knopf. */
  background: none; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn--light   { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--surface-2); color: var(--ink); }
.btn--outline { border-color: var(--ink-line-2); color: var(--on-dark); font-weight: 500; }
.btn--outline:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn--dark    { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); }
.btn:active { transform: translateY(1px); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .4s var(--ease);
}
.card--dark { background: var(--ink-card); border-color: var(--ink-line); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--spaced { margin-top: 44px; }

.split { display: flex; gap: 64px; flex-wrap: wrap; }
.split__a { flex: 1 1 360px; }
.split__b { flex: 1 1 420px; }

.ticks {
  list-style: none; margin: 26px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  font-size: 17px; color: var(--text-body);
}
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--text); font-weight: 600; }

/* ---------- Icons ----------
   Duenne Strichgrafiken in Logo-Anthrazit. Kein neuer Farbton, keine Flaechen:
   sie sollen Ankerpunkte fuers Auge sein, nicht Dekoration. */
.ikon {
  width: 30px; height: 30px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}
.card--dark .ikon { stroke-width: 1.2; }

/* ---------- Kopfzeile ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; gap: 24px; position: relative; }
/* img/Logo.png ist bereits weiss (fuer dunkle Flaechen).
   Fuer helle Flaechen gibt es img/logo-dark.png in Logo-Anthrazit. */
.nav__logo { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav__links a { color: var(--on-dark-muted); text-decoration: none; position: relative; transition: color .25s var(--ease); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--on-dark); }
.nav__cta {
  background: var(--white); color: var(--ink) !important; padding: 11px 20px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: background .25s var(--ease);
}
.nav__cta:hover { background: var(--surface-2); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); }
.hero__inner { padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 88px); }
.hero__body { display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 30px); }
.hero__kicker { display: flex; align-items: center; gap: 14px; }
.hero__rule { width: 38px; height: 2px; background: var(--on-dark); flex: none; }
.hero h1 { max-width: 16ch; }
.hero__lead { max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink-line); padding-top: 32px; }
.stats__num { font-weight: 300; letter-spacing: -0.02em; font-size: clamp(28px, 3.2vw, 40px); }
.stats__label { font-size: 15px; color: var(--on-dark-dim); margin-top: 4px; }

/* ---------- Zweispaltige Abschnittsköpfe ---------- */
.head2 { display: flex; gap: 64px; align-items: flex-end; margin-bottom: 44px; }
.head2 > :first-child { flex: 1 1 auto; }
.head2 > :last-child { width: 420px; flex: none; margin-bottom: 8px; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 40px; border-top: 1px solid var(--rule); padding-block: 32px; }
.step__num { width: 60px; flex: none; font-weight: 300; font-size: 40px; line-height: 1; color: var(--numeral); }
.step__head { width: 320px; flex: none; }
.step__meta { font-size: 15px; font-weight: 600; color: var(--text); margin-top: 6px; }
.step__body { flex: 1 1 auto; color: var(--text-muted); }
.step:last-child { border-bottom: 1px solid var(--rule); }
/* Jeder Schritt schliesst gleich ab: was er den Kunden kostet.
   Das ersetzt den frueheren losen Risiko-Block. */
.step__kosten {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; font-size: 15px; color: var(--text);
}
.step__kosten span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Risiko ---------- */
.panel { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 60px); }
.panel--bordered { background: var(--surface); border: 1px solid var(--line); }
.pillar { border-top: 2px solid var(--ink); padding-top: 18px; }
.pillar h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.pillar p { font-size: 16px; color: var(--text-muted); margin-top: 8px; }

/* ---------- Referenzen: Carousel ----------
   Grundlage ist natives Scroll-Snapping. Ohne JavaScript bleibt es ein
   waagerecht scrollbarer Streifen - benutzbar, nur ohne Knoepfe. */
.carousel { position: relative; }
.carousel__track {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.ref { scroll-snap-align: start; display: flex; }
.ref__card {
  margin: 0; background: var(--ink-card); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 28px 28px 26px;
  display: flex; flex-direction: column; gap: 18px; width: 100%;
}
.ref__logo {
  width: 160px; height: 50px; object-fit: contain; object-position: left center;
  background: var(--white); border-radius: 8px; padding: 8px 12px;
}
.ref__text { margin: 0; font-weight: 300; font-size: 18px; line-height: 1.5; flex: 1 1 auto; }
.quote__by { border-top: 1px solid var(--ink-line); padding-top: 16px; }
.quote__by strong { display: block; font-weight: 600; font-size: 16px; }
.quote__by span { font-size: 15px; color: var(--on-dark-muted); }

.carousel__nav { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.carousel__btn {
  flex: none; width: 48px; height: 48px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid var(--ink-line-2); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__dots { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink-line-2); transition: background .25s var(--ease), transform .25s var(--ease);
}
.dot[aria-current="true"] { background: var(--on-dark); transform: scale(1.35); }

/* ---------- Team ---------- */
.person { flex-direction: row; align-items: center; gap: 24px; }
.person > div { flex: 1 1 auto; }
.person__photo { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; background: var(--surface-2); }
.person__role { font-size: 16px; font-weight: 600; margin-top: 2px; }
.person p { font-size: 16px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 24px; font-size: clamp(18px, 2vw, 21px); font-weight: 500; line-height: 1.35;
  transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #000; }
.faq__item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--numeral); border-bottom: 1.5px solid var(--numeral);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding-bottom: 26px; max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Kontakt ---------- */
.contact { display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.contact__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.contact__box { flex: 0 1 360px; background: var(--ink-card); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.contact__box .btn { width: 100%; }
.contact__addr { font-size: 15px; line-height: 1.55; color: var(--on-dark-muted); text-align: center; }

/* ---------- Fuß ---------- */
.footer { background: var(--ink-deep); color: var(--on-dark-dim); padding-block: 32px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.footer a { color: var(--on-dark-dim); text-decoration: none; transition: color .25s var(--ease); }
.footer a:hover { color: var(--on-dark); }
.footer__links { display: flex; gap: 24px; }

/* ---------- Rechtstexte ---------- */
.legal { display: flex; gap: 80px; align-items: flex-start; flex-wrap: wrap; }
.legal__title { flex: 0 1 340px; }
.legal__body { flex: 1 1 480px; max-width: 660px; display: flex; flex-direction: column; gap: 36px; }
.legal__block { border-top: 1px solid var(--rule); padding-top: 28px; }
.legal__block:first-child { border-top: 0; padding-top: 0; }
.legal__block h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0; }
.legal__block p { margin-top: 10px; font-size: 17px; line-height: 1.7; color: var(--text-body); }
.legal__note { background: var(--surface-2); border-radius: 12px; padding: 20px 24px; font-size: 15px; color: var(--text-muted); }

/* ==========================================================================
   Animationen
   Alles ist rein dekorativ: ohne JavaScript und bei reduzierter Bewegung
   ist der volle Inhalt sofort sichtbar.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* Beim Scrollen einblenden, --d staffelt die Geschwister */
  /* translate3d statt translateY: erzwingt eine eigene Compositor-Ebene, damit
     grosse Textbloecke beim Einblenden nicht Bild fuer Bild neu gerastert werden.
     will-change wird nach der Animation per JS wieder entfernt (.is-done),
     sonst bleiben 36 Ebenen dauerhaft im Speicher. */
  .js .reveal { opacity: 0; transform: translate3d(0, 14px, 0); will-change: opacity, transform; }
  .js .reveal.is-in {
    opacity: 1; transform: translate3d(0, 0, 0);
    transition: opacity .5s var(--ease) calc(var(--d, 0) * 70ms),
                transform .5s var(--ease) calc(var(--d, 0) * 70ms);
  }
  .js .reveal.is-done { will-change: auto; }

  /* Hero: beim Laden gestaffelt aufziehen */
  .js .enter {
    opacity: 0; transform: translate3d(0, 18px, 0);
    animation: ii-enter .7s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 85ms + 100ms);
  }
  @keyframes ii-enter { to { opacity: 1; transform: translate3d(0, 0, 0); } }

  .js .hero__rule { transform: scaleX(0); transform-origin: left; animation: ii-rule .8s var(--ease) .35s forwards; }
  @keyframes ii-rule { to { transform: scaleX(1); } }

  /* FAQ-Antwort aufklappen */
  .faq__item[open] .faq__answer { animation: ii-open .4s var(--ease); }
  @keyframes ii-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

  /* Referenzlogos/-namen leicht anheben */
}

/* ---------- Responsiv ---------- */
@media (max-width: 1000px) {
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head2 { flex-direction: column; align-items: flex-start; gap: 20px; }
  .head2 > :last-child { width: auto; margin-bottom: 0; }
  .step__head { width: 240px; }
  .split { gap: 36px; }
}
@media (max-width: 760px) {
  .carousel__track { grid-auto-columns: 86%; gap: 16px; }
  .nav__logo { height: 26px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; left: 0; right: 0; top: 78px; z-index: 10;
    background: var(--ink-card); border: 1px solid var(--ink-line);
    border-radius: var(--radius); padding: 12px;
  }
  .nav__links.is-open a { padding: 12px 14px; }
  .nav__links.is-open .nav__cta { text-align: center; justify-content: center; margin-top: 6px; }
  .nav__toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; background: none; cursor: pointer;
    border: 1px solid var(--ink-line-2); border-radius: 10px;
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__logo { height: 26px; }

  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  /* Problemkarten bleiben zweispaltig: vier untereinander kosteten allein
     ueber 1000 px Hoehe. */
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--4 .card { padding: 18px 16px; }
  .grid--4 .h3 { font-size: 17px; }
  .grid--4 .muted { font-size: 14px; line-height: 1.5; }
  .ikon { width: 24px; height: 24px; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step { flex-direction: column; gap: 10px; }
  .step__num { font-size: 30px; }
  .step__head { width: auto; }
  .contact, .legal { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Hover
   Nur fuer echte Zeigegeraete. Auf Touch gibt es kein Hover: dort wuerden die
   Effekte nach einem Tap haengen bleiben, und die transform-Uebergaenge der
   Karten liefen beim Scrollen staendig mit.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .35s var(--ease), border-color .35s var(--ease); }
  .card:hover { transform: translate3d(0, -3px, 0); border-color: var(--line-hover); }
  .card--dark:hover { border-color: var(--ink-line-2); }
  .carousel__btn:hover:not([disabled]) { background: var(--ink-card); border-color: var(--on-dark); }
  .dot:hover { background: var(--on-dark-muted); }
}

/* ==========================================================================
   Einwilligung
   Ablehnen und Zustimmen sind gleich gross und gleich erreichbar. Keine
   Vorauswahl, kein abgeschwaechter Ablehnen-Knopf.
   ========================================================================== */
.consent {
  position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 720px; margin-inline: auto;
  background: var(--ink); color: var(--on-dark);
  border: 1px solid var(--ink-line); border-radius: var(--radius-lg);
  padding: 26px 28px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0; transform: translateY(16px);
}
.consent.is-da { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.consent__text { flex: 1 1 320px; }
.consent__text strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.consent__text p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }
.consent__text a { color: var(--on-dark); }
.consent__aktionen { flex: 0 0 auto; display: flex; gap: 12px; }
.consent__aktionen .btn { font-size: 16px; padding: 12px 22px; min-height: 46px; }

@media (max-width: 620px) {
  .consent { padding: 22px; gap: 18px; }
  .consent__aktionen { width: 100%; }
  .consent__aktionen .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { opacity: 1; transform: none; }
}
