/* ==========================================================
   Startaz – One-Pager
   Farben & Schriften zentral hier anpassen
   ========================================================== */
:root {
  --accent: #E45E41;          /* Startaz-Orange (wie Rechnungen / Signatur) */
  --accent-soft: #FBE7E2;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #7a7873;
  --line: #E8E6E1;
  --bg: #FAFAF8;
  --surface: #FFFFFF;

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
/* Deko-Elemente (Farbschimmer, Hover-Flächen) dürfen nie über den Rand ragen */
.hero, #leistungen { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 250, 248, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a:not(.pill) { color: var(--ink-2); transition: color .2s; }
.nav a:not(.pill):hover { color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pill:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 720px) { .nav a:not(.pill) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(130px, 16vh, 180px) 0 clamp(56px, 8vh, 96px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: min(70vw, 820px); aspect-ratio: 1;
  right: -12vw; top: -8vw;
  background: radial-gradient(closest-side, rgba(228, 94, 65, .22), rgba(228, 94, 65, 0));
  filter: blur(10px);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float { to { transform: translate(-6vw, 6vw) scale(1.08); } }

.hero h1 {
  margin: 28px 0 0;
  font-size: clamp(48px, 10.5vw, 168px);
  line-height: .92;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero h1 .light { font-weight: 300; color: var(--ink-2); }
.hero-foot {
  margin-top: clamp(40px, 7vh, 80px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.hero-foot p { margin: 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted);
}
.scroll-hint span {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: border-color .25s, color .25s;
}
.scroll-hint:hover span { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .hero-foot { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 30px) 0;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  margin: 0; padding: 0 clamp(14px, 2vw, 28px); list-style: none;
}
.marquee li {
  display: flex; align-items: center; gap: clamp(28px, 4vw, 56px);
  white-space: nowrap;
  font-size: clamp(26px, 4.2vw, 56px); font-weight: 500; letter-spacing: -.03em;
}
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee li::after { content: "✦"; font-size: .45em; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head h2 {
  margin: 18px 0 0;
  font-size: clamp(38px, 5.6vw, 80px); line-height: 1; letter-spacing: -.04em; font-weight: 600;
}
.section-head p { margin: 0; max-width: 520px; justify-self: end; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
}

/* ---------- Leistungen ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid; grid-template-columns: 80px 1.3fr 1fr 40px; gap: 24px; align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1);
  background: var(--surface); z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service .num { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.service h3 {
  margin: 0; font-size: clamp(26px, 3.4vw, 48px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05;
  transition: color .3s, transform .45s var(--ease);
}
.service p { margin: 0; color: var(--muted); font-size: 16px; max-width: 380px; }
.service .arrow {
  justify-self: end; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  opacity: 0; transform: translateX(-10px) rotate(-45deg);
  transition: opacity .3s, transform .45s var(--ease);
}
.service:hover h3 { color: var(--accent); transform: translateX(8px); }
.service:hover .arrow { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .service { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .service p { grid-column: 2; }
  .service .arrow { display: none; }
}

/* ---------- Ansatz ---------- */
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.principle { background: var(--surface); padding: clamp(28px, 3.4vw, 48px); min-height: 280px; display: flex; flex-direction: column; }
.principle .k { font-size: 14px; color: var(--accent); font-weight: 500; }
.principle h3 { margin: clamp(40px, 5vw, 72px) 0 12px; font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.035em; font-weight: 500; line-height: 1.05; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } .principle { min-height: 0; } }

/* ---------- Founder ---------- */
.founder { background: var(--surface); border-block: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.founder-photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: saturate(.82) contrast(.96) brightness(1.08); transform: scale(1.06); transition: transform 1.6s var(--ease); }
.founder-photo.in img { transform: scale(1); }
.founder-photo .tag {
  position: absolute; left: 18px; bottom: 18px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 500;
}
.founder blockquote {
  margin: 28px 0 0;
  font-size: clamp(28px, 3.6vw, 54px); line-height: 1.1; letter-spacing: -.035em; font-weight: 500;
}
.founder blockquote em { font-style: normal; color: var(--accent); }
.founder .sig { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.founder .sig img { width: 52px; }
.founder .sig div { line-height: 1.3; }
.founder .sig strong { display: block; font-weight: 600; }
.founder .sig span { color: var(--muted); font-size: 15px; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 0; border-block: 1px solid var(--line); text-align: center; }
.facts > div { padding: 0 8px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(16px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.02em; }
.facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } .founder-photo { max-width: 520px; } }
@media (max-width: 480px) { .facts span { font-size: 12px; } }

/* ---------- Kontakt ---------- */
.contact { text-align: left; }
.contact h2 {
  margin: 24px 0 0;
  font-size: clamp(56px, 12vw, 200px); line-height: .9; letter-spacing: -.05em; font-weight: 600;
}
.mail {
  display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(40px, 6vw, 72px);
  font-size: clamp(22px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.03em;
  padding-bottom: 6px; border-bottom: 2px solid var(--ink);
  transition: color .25s, border-color .25s;
  word-break: break-all;
}
.mail svg { flex: none; width: .8em; height: .8em; transition: transform .35s var(--ease); }
.mail:hover { color: var(--accent); border-color: var(--accent); }
.mail:hover svg { transform: translate(4px, -4px); }
.contact-meta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 15px; transition: border-color .25s, color .25s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip svg { width: 16px; height: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .mark { height: 18px; width: auto; }

/* ---------- Reveal-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .hero::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding: 140px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.04em; line-height: 1; margin: 18px 0 48px; font-weight: 600; }
.legal h2 { font-size: 20px; margin: 40px 0 8px; letter-spacing: -.01em; }
.legal p { color: var(--ink-2); margin: 0 0 12px; }
.legal a { color: var(--accent); }
.legal .note { padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); }

/* ---------- Anker-Sprünge: Platz für die fixe Kopfzeile ---------- */
/* #ansatz hat kein oberes Padding, deshalb braucht es hier extra Abstand */
#ansatz { scroll-margin-top: 120px; }
/* Sektionen mit großem Padding etwas tiefer anspringen, damit die Überschrift nicht zu weit unten steht */
#leistungen, #ueber, #kontakt { scroll-margin-top: calc(76px - clamp(96px, 14vw, 180px) + 48px); }
