/* =========================================================
   inno:peak consulting — One-Pager
   Design-Tokens zuerst: alles Weitere leitet sich davon ab.
   ========================================================= */

:root {
  /* Marke (aus dem Logo) */
  --pink:        #db2568;
  --pink-dark:   #b81c55;
  --slate:       #404756;

  /* Highlight — zweite Akzentfarbe.
     --green ist für Flächen und Grafik gedacht; für kleinen Text auf Weiß
     reicht sein Kontrast nicht (3.1:1), dafür gibt es --green-dark (5.1:1). */
  --green:       #58a27c;
  --green-dark:  #3f7a5c;

  /* Flächen & Text */
  --ink:         #1c2230;
  --ink-soft:    #5a6474;
  --line:        #e6e8ee;
  --bg:          #ffffff;
  --bg-tint:     #f7f8fa;

  /* Typo — fluid, skaliert von Handy bis Desktop */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --fs-h1:   clamp(2.35rem, 1.4rem + 4.2vw, 4.5rem);
  --fs-h2:   clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem);
  --fs-h3:   clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);

  /* Raster & Rhythmus */
  --shell:   1200px;
  --gutter:  clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius:  18px;

  --shadow:      0 1px 2px rgba(28, 34, 48, .05), 0 12px 32px -12px rgba(28, 34, 48, .12);
  --shadow-lift: 0 2px 4px rgba(28, 34, 48, .06), 0 24px 48px -16px rgba(28, 34, 48, .2);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
/* Überschriften mit eigenem <br>: kein automatischer Ausgleich */
.h2--manual { text-wrap: nowrap; }
@media (max-width: 43.99rem) { .h2--manual { text-wrap: balance; } }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dt, dd { margin: 0; }
a { color: inherit; }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--pink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout-Bausteine ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
/* Enger gesetzte Übergänge: der Hero bringt unten schon Luft mit, und die
   getönte Team-Sektion setzt sich auch ohne großen Vorlauf ab. */
#leistungen { padding-block: calc(var(--section) / 2); }
#projekte   { padding-bottom: calc(var(--section) / 2); }
#team       { padding-top: calc(var(--section) / 2); }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__intro { color: var(--ink-soft); font-size: var(--fs-lead); margin-top: 1rem; }

.eyebrow {
  font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 1rem;
}
.eyebrow--light { color: #ffb9d3; }
.accent { color: var(--pink); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 44rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--pink); --btn-fg: #fff; --btn-bd: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { --btn-bg: var(--pink-dark); --btn-bd: var(--pink-dark); box-shadow: var(--shadow-lift); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(28,34,48,.5); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 78px;
}
.brand img { width: clamp(140px, 16vw, 190px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav__list a {
  position: relative; text-decoration: none; font-weight: 600; font-size: .97rem;
  color: var(--slate); padding-block: .35rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pink); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px; margin-inline: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* unten bewusst kleiner: die folgende Sektion bringt ihren eigenen Abstand mit */
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -30% -10% auto -10%; height: 90vh; z-index: -1;
  background:
    radial-gradient(42rem 32rem at 78% 18%, rgba(219, 37, 104, .16), transparent 62%),
    radial-gradient(34rem 26rem at 95% 62%, rgba(88, 162, 124, .20), transparent 64%),
    radial-gradient(38rem 30rem at 12% 4%,  rgba(64, 71, 86, .12),  transparent 60%);
  filter: blur(6px);
}
.hero__inner { display: grid; gap: clamp(3rem, 6vw, 4.5rem); }
.hero__copy { max-width: 56rem; }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 40rem; margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.5rem; }

.facts {
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; gap: .35rem; }
.facts strong { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; color: var(--pink); }
.facts span { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Cards / Leistungen ---------- */
.card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card p { color: var(--ink-soft); }

/* Icon und Überschrift teilen sich eine Zeile. Das Icon darf nicht schrumpfen,
   die Überschrift nicht umbrechen — daher kleinere Schrift in der Karte. */
.card__head { display: flex; align-items: center; gap: .85rem; }
.card__head h3 {
  font-size: clamp(1rem, .92rem + .3vw, 1.2rem);
  white-space: nowrap; hyphens: none;
}
.card__icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px;
  border-radius: 12px; background: var(--pink); color: #fff;
}
.card__icon svg { width: 22px; height: 22px; }

.ticks { display: grid; gap: .5rem; margin-top: auto; padding-top: .75rem; }
.ticks li {
  position: relative; padding-left: 1.4rem;
  font-size: .95rem; font-weight: 600; color: var(--slate);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

/* ---------- Ansatz ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 62rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__head { position: sticky; top: 118px; }
}
.split__head .section__head { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-size: .95rem; font-weight: 800; color: var(--green-dark);
  font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); }

/* ---------- Projekte ---------- */
.project {
  display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  transition: border-color .25s ease, transform .25s ease;
}

/* Ausgangslage / Rolle / Ergebnis — Beschriftung über dem jeweiligen Absatz */
.project__facts { display: grid; gap: 1rem; margin-block: 1.25rem; }
.project__facts dt {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .3rem;
}
.project__facts dd { color: var(--ink-soft); line-height: 1.6; }

/* Das stärkste Argument steht abgesetzt am Fuß der Karte */
.project__why {
  margin-top: auto; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .95rem; line-height: 1.6;
}
.project__why strong { color: var(--pink); }
.project:hover { transform: translateY(-3px); border-color: var(--green); }
.project h3 { margin-bottom: .6rem; }
.project p { color: var(--ink-soft); }
.project .project__tag {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .85rem;
}

/* Hinweis unter den Fallstudien: es gibt mehr als die zwei gezeigten */
.more-cases {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65;
}
.more-cases strong { color: var(--ink); }

.branches { margin-top: clamp(2.5rem, 5vw, 4rem); }
.branches__label { font-weight: 700; color: var(--slate); margin-bottom: 1rem; }
.branches ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.branches li {
  padding: .45rem 1rem; font-size: .92rem; font-weight: 600; color: var(--slate);
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px;
}

/* ---------- Team ---------- */
.person {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
/* Runder Zuschnitt auf dem Container — so bekommt auch der Initialen-Platzhalter
   dieselbe Form, falls einmal ein Foto fehlt. */
.person__avatar {
  display: grid; place-items: center; flex: 0 0 auto; overflow: hidden;
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--slate));
  color: #fff; font-weight: 800; letter-spacing: .04em;
}
/* Graustufen kommen aus dem CSS, nicht aus der Datei — so sehen beide Portraits
   gleich aus, egal wie das Original vorliegt. */
.person__avatar img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  filter: grayscale(1);
}
.person__role { font-size: .9rem; font-weight: 700; color: var(--pink); margin-bottom: .7rem; }
.person p:last-child { color: var(--ink-soft); }
.team__closing {
  margin-top: clamp(2rem, 4vw, 3rem); max-width: none;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 600; color: var(--slate); text-wrap: pretty;
}

/* Partnernetzwerk — abgesetzt vom Team, mit dem Highlight als Kante */
.network {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: var(--bg); border: 1px solid var(--line);
  border-left: 3px solid var(--green); border-radius: var(--radius);
}
@media (min-width: 52rem) { .network { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.network h3 { margin-bottom: .75rem; }
.network p { color: var(--ink-soft); }
.network p + p { margin-top: .9rem; }
.network__list { margin-top: 0; padding-top: 0; align-content: start; }

/* ---------- Kontakt ---------- */
.section--cta { background: var(--slate); color: #fff; }
.section--cta h2 { color: #fff; }
.section--cta .section__intro { color: rgba(255, 255, 255, .75); }

/* Ohne Formular braucht es keine zweite Spalte — der Text bekommt eine
   Lesebreite statt sich über die ganze Sektion zu ziehen. */
.contact__copy { max-width: 44rem; }

.contact__list { margin-top: 2.25rem; display: grid; gap: .9rem; font-size: 1.05rem; }
.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.contact__list a:hover { border-bottom-color: var(--green); }
.contact__list li:last-child { color: rgba(255,255,255,.72); font-size: .97rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.footer__logo { width: 150px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { font-size: .93rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.footer__nav a:hover { color: var(--pink); }
.footer__copy { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding-block: var(--section); }
.legal .shell { max-width: 48rem; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-h3); margin-top: 2.5rem; margin-bottom: .6rem; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .6rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal .todo {
  padding: 1rem 1.25rem; margin-block: 1.5rem;
  background: #fff5f8; border-left: 3px solid var(--pink); border-radius: 0 10px 10px 0;
  color: var(--slate); font-size: .93rem;
}

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile Navigation ---------- */
@media (max-width: 61.99rem) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    display: grid; gap: 0; align-items: start;
    padding: 1.5rem var(--gutter) 2rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(28,34,48,.5);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 1.25rem; width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .hero__bg { display: none !important; }
  body { color: #000; }
  .reveal { opacity: 1; transform: none; }
}

/* Manueller Zeilenumbruch nur ab Tablet-Breite */
.br-lg { display: none; }
@media (min-width: 44rem) { .br-lg { display: inline; } }

/* Sprungziele nicht unter der klebenden Kopfzeile verstecken
   (Rückfall, falls JavaScript nicht läuft) */
:target { scroll-margin-top: 92px; }
