/* 99agency – Stylesheet. Farben, Abstände und Schriften aus dem Design Guide. */

@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }

:root {
  --graphit: #2B2D31;
  --graphit-deep: #1C1D20;
  --graphit-raised: #3C3F45;
  --line: #4A4E55;
  --line-strong: #7A7F87;
  --nebel: #C8C6C1;
  --nebel-deep: #BDBBB6;
  --text: #E8E6E1;
  --text-muted: #9EA2A9;
  --text-soft: #B4B7BC;
  --ink: #2B2D31;
  --ink-muted: #4A4D53;
  --orange: #FF5A1F;
  --on-orange: #1C1D20;
  --mark: #26282C;

  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 5vw, 96px);
  --section-y: clamp(72px, 10vw, 144px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--graphit); color: var(--text); font: 400 16px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.bg-graphit { background: var(--graphit); }
.bg-deep { background: var(--graphit-deep); }
.light { background: var(--nebel); color: var(--ink); }

/* Typography */
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--font-text); letter-spacing: .01em; color: var(--text-muted); margin-bottom: 24px; }
.label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.light .label { color: var(--ink-muted); }
.h2 { font: 500 clamp(34px, 4.4vw, 60px)/1.05 var(--font-display); letter-spacing: -0.035em; max-width: 30ch; }
.h2 .hl, .h2 .muted, .statement .hl, .statement .muted { display: block; }
.h2 .muted, .statement .muted { color: var(--text-muted); }
.light .h2 .muted, .light .statement .muted { color: var(--ink-muted); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--text-muted); max-width: 46ch; }
.light .lead { color: var(--ink-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--radius-pill); font: 500 16px/1 var(--font-text); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: #FF6D38; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--text); }
.light .btn--secondary { color: var(--ink); border-color: var(--ink-muted); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(3px); }
.link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--line-strong); padding-bottom: 4px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: var(--graphit-deep); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.site-header.is-scrolled .site-header__inner { height: 72px; }
.brand { display: block; width: 48px; flex: none; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: 36px; }
.nav a { font: 500 15px/1 var(--font-text); color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line-strong); color: var(--text); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: max(640px, min(100svh, 1120px)); display: flex; align-items: center; overflow: hidden; background: var(--graphit); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(200px, 25vw, 360px); }
.hero__title { font: 500 clamp(54px, 7.2vw, 116px)/0.97 var(--font-display); letter-spacing: -0.045em; color: var(--text); }
.nn { display: inline-block; width: .821em; height: .8em; overflow: visible; color: inherit; fill: currentColor; vertical-align: baseline; }
.hero__title .nn { margin-right: .17em; }
.slot { display: inline-block; position: relative; height: 1em; vertical-align: bottom; overflow: hidden; overflow-x: visible; overflow-y: clip; color: var(--orange); white-space: nowrap; padding-bottom: .14em; box-sizing: content-box; margin-bottom: -.14em; }
.slot__reel { display: block; will-change: transform; }
.slot__word { display: block; height: 1.4em; line-height: .97; }
.hero__sub { margin: 32px 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--line-strong); }
.wordmark { position: absolute; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: calc(.15em + 16px); z-index: -1; display: flex; align-items: baseline; gap: .06em; font: 500 clamp(110px, 20vw, 400px)/1 var(--font-display); color: var(--mark); white-space: nowrap; pointer-events: none; user-select: none; }
.wordmark .nn { height: .95em; width: .975em; }
.wordmark span { font-size: .56em; letter-spacing: -0.06em; line-height: 1; }

/* Statement */
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.statement { font: 500 clamp(28px, 3.3vw, 46px)/1.22 var(--font-display); letter-spacing: -0.025em; }
.statement-aside { color: var(--ink-muted); font-size: 17px; max-width: 42ch; padding-top: .55em; }

/* Entry cards */
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.entry { background: var(--graphit-raised); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 22px; min-height: 100%; }
.tag { align-self: flex-start; font: 500 13px/1 var(--font-text); color: var(--text-soft); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 7px 13px; }
.entry h3 { font: 500 clamp(28px, 2.6vw, 38px)/1.1 var(--font-display); letter-spacing: -0.025em; }
.entry p { color: var(--text-soft); max-width: 48ch; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.checks li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: translateY(-2px); }
.entry .btn { margin-top: auto; align-self: flex-start; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "ecom kmu kmu" "ecom prod netz"; gap: 12px; margin-top: 56px; }
.card { position: relative; border-radius: var(--radius-md); background: var(--tone, var(--graphit-raised)); padding: clamp(24px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.card__body { display: flex; flex-direction: column; flex: 1; }
.card--ecom .card__body .checks { margin-top: auto; padding-top: 28px; }
.card--ecom { grid-area: ecom; --tone: #46494F; }
.card--kmu { grid-area: kmu; --tone: #404349; }
.card--prod { grid-area: prod; --tone: #393C42; }
.card--netz { grid-area: netz; --tone: #35383D; }
.card h3 { font: 500 clamp(24px, 2vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; margin-bottom: 14px; }
.card--ecom h3, .card--kmu h3 { font-size: clamp(28px, 2.6vw, 38px); }
.card p { color: var(--text-soft); font-size: 15px; line-height: 1.6; max-width: 46ch; }
.card .checks { margin-top: 22px; gap: 8px; font-size: 15px; }
.card__split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.card__split .checks { margin-top: 0; }

/* Process: timeline */
.timeline { position: relative; margin-top: 64px; --dur: 2.4s; }
.timeline__track { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; background: var(--orange); transform-origin: left center; transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.step { position: relative; padding-top: 44px; }
.step__dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--graphit-deep); }
.step__num { display: block; font: 500 clamp(44px, 4vw, 64px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--graphit-raised); }
.step h3 { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.02em; margin: 18px 0 10px; }
.step p { color: var(--text-soft); font-size: 15px; line-height: 1.6; max-width: 30ch; text-wrap: balance; }
.js .timeline .timeline__fill { transform: scaleX(0); transition: transform var(--dur) linear; }
.js .timeline .step__dot { background: var(--graphit-deep); border: 2px solid var(--line); transition: background-color .3s, border-color .3s, box-shadow .4s; transition-delay: calc(var(--i) * var(--dur) / 4); }
.js .timeline .step > :not(.step__dot) { opacity: .25; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * var(--dur) / 4); }
.js .timeline.is-in .timeline__fill { transform: scaleX(1); }
.js .timeline.is-in .step__dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px var(--graphit-deep), 0 0 18px 2px rgba(255, 90, 31, .45); }
.js .timeline.is-in .step > :not(.step__dot) { opacity: 1; transform: none; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 112px); align-items: stretch; }
.founder__img { border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; background: var(--nebel-deep); }
.founder__text { display: flex; flex-direction: column; align-items: flex-start; }
.founder__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.founder__text p { font-size: 17px; max-width: 54ch; margin-top: 18px; }
.founder__text .btn { margin-top: auto; }
.founder__text p:last-of-type { margin-bottom: 32px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 500 clamp(18px, 1.5vw, 21px)/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font: 400 20px/1 var(--font-text); color: var(--text-muted); transition: transform .25s var(--ease), border-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); border-color: var(--orange); color: var(--orange); }
.faq details p { color: var(--text-soft); padding: 0 56px 26px 0; max-width: 62ch; }

/* CTA */
.cta { background: var(--graphit-raised); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 88px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -10%; top: 50%; width: 60%; height: 2px; background: var(--orange); filter: blur(10px); opacity: .7; }
.cta h2 { font: 500 clamp(34px, 4.4vw, 60px)/1.05 var(--font-display); letter-spacing: -0.035em; }
.cta p { color: var(--text-soft); margin-top: 16px; max-width: 46ch; }
.cta > * { position: relative; }

/* Footer */
.site-footer { background: var(--graphit-deep); padding: 72px 0 40px; color: var(--text-muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font: 500 13px/1 var(--font-text); color: var(--text); margin-bottom: 18px; letter-spacing: .01em; }
.footer-grid ul { display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { width: 64px; height: auto; margin-bottom: 20px; }
.social { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 50%; color: var(--text); transition: color .2s, border-color .2s, background-color .2s; }
.social:hover { color: var(--on-orange); background: var(--orange); border-color: var(--orange); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon .icon__dot { fill: currentColor; stroke: none; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--line-strong); }

/* Subpages */
.page-hero { padding: 168px 0 64px; }
.page-hero h1 { font: 500 clamp(44px, 6vw, 88px)/1 var(--font-display); letter-spacing: -0.04em; max-width: 16ch; }
.page-hero .lead { margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.panel { background: var(--graphit-raised); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 48px); }
.panel h2 { font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--font-display); letter-spacing: -0.025em; margin-bottom: 14px; }
.panel p { color: var(--text-soft); }
.panel .btn { margin-top: 28px; }
.panel .checks { margin-top: 24px; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 14px/1.3 var(--font-text); color: var(--text); }
.field label span { color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font-text); color: var(--text); background: var(--graphit); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .2s; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 13px; color: var(--text-muted); }
.form-note a { color: var(--text); }
.hp { display: none; }
.prose { max-width: 72ch; }
.prose h2 { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--font-display); letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose h3 { font: 500 18px/1.3 var(--font-text); margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 10px; }
.prose a { color: var(--text); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "ecom ecom" "kmu kmu" "prod netz"; }
  .card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--graphit-deep); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; z-index: -1; }
  .nav a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--text); }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .menu-toggle { display: block; }
  .site-header__inner { height: 72px; }
  .header-cta { display: none; }
  .statement-grid, .founder, .faq, .contact-grid { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { min-height: max(680px, 100svh); align-items: flex-start; }
  .hero__bg img { object-position: 50% 100%; }
  .hero__content { padding-top: 112px; padding-bottom: 340px; }
  .hero__actions .btn--secondary { display: none; }
  .hero__title { font-size: min(10.4vw, 64px); }
  .hero__sub { margin: 22px 0 28px; font-size: 17px; }
  .hero__note { display: none; }
  .wordmark { font-size: 24vw; bottom: calc(.15em + 12px); }
  .bento { grid-template-columns: 1fr; grid-template-areas: "ecom" "kmu" "prod" "netz"; }
  .card__split { grid-template-columns: 1fr; gap: 22px; }
  .timeline__track { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline__fill { transform-origin: center top; }
  .js .timeline .timeline__fill { transform: scaleY(0); }
  .js .timeline.is-in .timeline__fill { transform: scaleY(1); }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .step { padding-top: 0; padding-left: 44px; }
  .step p { max-width: none; }
  .founder__img { min-height: 0; aspect-ratio: 4 / 5; }
  .statement-aside { padding-top: 0; }
  .faq details p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.menu-open .site-header { background: var(--graphit-deep); }
