@layer reset, theme, base, components, utilities;
@import "tailwindcss" source(none);
@source "../src";

/* Self-hosted Schriften (kein CDN, DSGVO-konform) — sorgen fuer identischen Look auf allen Geraeten */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/public/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/public/fonts/archivo-black.woff2") format("woff2");
}

:root {
  --paper: #f3e7c5;
  --paper-2: #e6d8b4;
  --forest: #1e3328;
  --ink: #17271f;
  --olive: #66705b;
  --brick: #b4472c;
  --butter: #f2c45d;
  --line: rgba(23, 39, 31, .19);
  color-scheme: light;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip; }
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: var(--paper);
  z-index: 9999;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img, video { display: block; width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, .proof-number, .cost-figure span, .footer-wordmark {
  font-family: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.055em;
  line-height: .95;
}
h1, h2, h3, blockquote, .reveal-line { text-wrap: balance; }

.site-nav {
  min-height: 72px;
  padding: env(safe-area-inset-top) 3.5vw 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 900; letter-spacing: -.04em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--forest);
}
.brand-mark img { width: 70%; height: 70%; object-fit: contain; }
.brand-mark--inverse { background: var(--paper); }
.site-nav nav { display: flex; gap: 2rem; font-size: .82rem; font-weight: 700; }
.site-nav nav a { transition: color .25s ease; }
.site-nav nav a:hover { color: var(--brick); }
.nav-cta {
  justify-self: end;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.hero { min-height: calc(100dvh - 72px); position: relative; overflow: hidden; background: var(--forest); }
.hero-video { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,39,31,.98) 0%, rgba(23,39,31,.84) 37%, rgba(23,39,31,.12) 72%); }
.hero-copy { position: relative; z-index: 1; min-height: calc(100dvh - 72px); width: min(760px, 62vw); padding: clamp(4rem, 10vh, 7rem) 3.5vw 4rem; color: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 900; }
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.2rem); max-width: 15ch; }
.h1-punch { display: block; margin-top: .9em; color: var(--butter); font-size: clamp(1.5rem, 2.4vw, 2.3rem); letter-spacing: -.03em; line-height: 1.15; }
.hero-sub { margin-top: 1.5rem; max-width: 38ch; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.45; }
.hero-cta { margin-top: 2rem; display: inline-flex; align-items: center; gap: 2rem; padding: 1rem 1.2rem 1rem 1.4rem; background: var(--brick); color: var(--paper); font-weight: 900; border-radius: 5px; transition: gap .3s ease, transform .3s ease; }
.hero-cta:hover { gap: 2.8rem; transform: translateY(-3px); }

.section { padding: clamp(5rem, 10vw, 10rem) 3.5vw; }
.section h2 { font-size: clamp(2.6rem, 5.4vw, 5.8rem); max-width: 13ch; }
.section p { line-height: 1.55; }

.checker { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5vw; align-items: end; background: var(--paper); }
.checker-copy h2 { text-wrap: wrap; }
.signal { display: inline-block; margin-bottom: 2rem; padding: .45rem .7rem; border: 1px solid var(--ink); border-radius: 999px; font-size: .74rem; font-weight: 900; }
.checker-copy > p { max-width: 40ch; margin-top: 1.7rem; }
.url-check { padding: clamp(2rem, 4vw, 4rem); background: var(--olive); color: var(--paper); border-radius: 16px; box-shadow: 0 24px 80px rgba(23,39,31,.14); }
.url-check label { display: block; max-width: 28ch; font-weight: 900; font-size: 1.3rem; margin-bottom: 1.3rem; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.input-row input { min-width: 0; padding: 1rem; border: 1px solid rgba(243,231,197,.55); background: rgba(243,231,197,.12); color: var(--paper); border-radius: 8px; outline: none; }
.input-row input::placeholder { color: rgba(243,231,197,.7); }
.input-row input:focus { border-color: var(--butter); box-shadow: 0 0 0 3px rgba(242,196,93,.25); }
.input-row button { border: 0; padding: 0 1.2rem; background: var(--ink); color: var(--paper); border-radius: 8px; font-weight: 900; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.input-row button:hover { background: var(--brick); }
.input-row button:active { transform: scale(.98); }
.form-note { margin-top: 1rem; font-size: .78rem; color: rgba(243,231,197,.82); }

.self-test { background: var(--paper-2); }
.test-grid { display: grid; grid-template-columns: 1.2fr .9fr 1.1fr; gap: 1px; margin-top: 4rem; background: var(--line); border: 1px solid var(--line); }
.test-grid article { min-height: 220px; padding: 2rem; background: var(--paper-2); display: flex; flex-direction: column; justify-content: space-between; }
.test-grid strong { font-size: 1.5rem; }
.test-grid p { font-size: 1.1rem; max-width: 22ch; }
.reveal-line { margin-top: 4rem; max-width: 45ch; font-size: clamp(1.5rem, 2.8vw, 3rem); font-weight: 800; letter-spacing: -.035em; }

.cost { display: grid; grid-template-columns: .72fr 1.25fr 1fr; gap: 3vw; align-items: center; background: var(--olive); color: var(--paper); }
.cost-figure span { display: block; color: var(--butter); font-size: clamp(3.4rem, 7vw, 7rem); }
.cost-figure p { max-width: 18ch; margin-top: 1rem; }
.scroll-image { overflow: hidden; border-radius: 16px; }
.scroll-image img { aspect-ratio: 4/3; object-fit: cover; transform: scale(1.06); }
.cost-copy h2 { font-size: clamp(2rem, 3.3vw, 3.6rem); }
.cost-copy p { margin-top: 1.5rem; max-width: 34ch; }

.proof { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8vw; align-items: center; background: var(--brick); color: var(--paper); }
.proof-number { font-size: clamp(9rem, 22vw, 23rem); color: var(--butter); }
.proof-copy h2 { font-size: clamp(3rem, 5.2vw, 5.8rem); }
.proof-copy p { max-width: 43ch; margin-top: 1.6rem; font-size: 1.15rem; }
.proof-copy small { display: block; max-width: 50ch; margin-top: 2rem; opacity: .78; line-height: 1.5; }

.process { background: var(--paper); }
.process-intro { padding-bottom: 5rem; }
.process-intro .eyebrow { margin-bottom: 1.2rem; color: var(--brick); }
.stack { display: grid; gap: 8vh; }
.stack-card { position: sticky; top: 96px; min-height: 68dvh; border-radius: 16px; padding: clamp(2rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: flex-end; box-shadow: 0 -18px 60px rgba(23,39,31,.12); }
.stack-card span { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 900; }
.stack-card h3 { max-width: 12ch; margin-top: 1rem; font-size: clamp(3.2rem, 7vw, 7.5rem); }
.stack-card p { max-width: 36ch; margin-top: 1.3rem; font-size: 1.1rem; }
.card-forest { background: var(--forest); color: var(--paper); }
.card-brick { background: var(--brick); color: var(--paper); }
.card-olive { background: var(--olive); color: var(--paper); }
.card-paper { background: var(--butter); color: var(--ink); }

.visual-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4vw; align-items: center; background: var(--paper-2); }
.visual-band blockquote { font-family: "Archivo Black", "Arial Black", sans-serif; font-size: clamp(2.1rem, 3.6vw, 4.2rem); letter-spacing: -.05em; line-height: .98; }

.terms { display: grid; grid-template-columns: .95fr 1.05fr; gap: 4vw; background: var(--paper); }
.terms h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); max-width: 17ch; }
.terms > div:first-child p { margin-top: 1.5rem; font-size: 1.1rem; }
.term-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.term-grid article { min-height: 230px; padding: 2rem; background: var(--paper); }
.term-grid strong { display: block; font-size: 1.4rem; }
.term-grid p { margin-top: 4rem; max-width: 25ch; }
.ico-ar { width: 1em; height: 1em; flex: 0 0 auto; }

.founder { display: grid; grid-template-columns: .5fr 1.5fr; gap: 5vw; align-items: start; background: var(--forest); color: var(--paper); }
.founder > .brand-mark { width: min(28vw, 300px); }
.founder h2 { max-width: 15ch; font-size: clamp(2.4rem, 5.2vw, 5.6rem); }
.founder p { max-width: 54ch; margin-top: 2rem; font-size: 1.1rem; }
.founder .signature { color: var(--butter); font-weight: 900; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; background: var(--paper-2); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-list summary { cursor: pointer; list-style: none; font-size: 1.25rem; font-weight: 900; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::after { content: "+"; color: var(--brick); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 56ch; padding-top: 1rem; }

.final-cta { min-height: 68dvh; display: grid; grid-template-columns: 1.3fr .7fr; gap: 8vw; align-items: end; background: var(--butter); }
.final-cta h2 { max-width: none; text-wrap: wrap; }
.final-cta p { margin-top: 1.5rem; font-size: 1.15rem; }
.final-action { display: flex; justify-content: space-between; align-items: center; padding: 2rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 900; white-space: nowrap; transition: box-shadow .3s ease, transform .3s ease; }
.final-action:hover { transform: translate(-5px, -5px); box-shadow: 8px 8px 0 var(--brick); }

footer { padding: 4rem 3.5vw 2rem; background: var(--forest); color: var(--paper); }
.footer-links { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(243,231,197,.24); }
.footer-links a { color: var(--butter); }
.footer-wordmark { display: flex; align-items: center; justify-content: center; gap: 2vw; margin: 4rem 0; font-size: clamp(6rem, 20vw, 22rem); overflow: hidden; }
.footer-wordmark .brand-mark { flex: 0 0 auto; width: clamp(5rem, 15vw, 15rem); }
footer > p { text-align: center; opacity: .66; font-size: .78rem; }
footer > p a { text-decoration: underline; text-underline-offset: 3px; }
footer > p a:hover { color: var(--butter); }

.float-cta-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.float-cta-wrap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.float-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.35rem;
  background: var(--brick);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 900;
  font-size: .92rem;
  box-shadow: 0 14px 40px rgba(23,39,31,.35);
  transition: background .25s ease;
}
.float-cta:hover { background: var(--ink); }
.float-cta-x {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--ink);
  color: var(--paper);
  font-size: .72rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
}
.term-arrow { display: none; }

.test-nudge {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  width: min(340px, calc(100vw - 2.5rem));
  padding: 1.1rem 2.4rem 1.2rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 rgba(23,39,31,.18);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.test-nudge.is-on { opacity: 1; transform: none; pointer-events: auto; }
.test-nudge strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.test-nudge p { margin: .4rem 0 .85rem; font-size: .85rem; line-height: 1.45; }
.test-nudge .nudge-go { display: inline-flex; padding: .6rem .95rem; background: var(--brick); color: var(--paper); border-radius: 6px; font-weight: 900; font-size: .82rem; }
.test-nudge .nudge-go:hover { background: var(--ink); }
.test-nudge .nudge-close { position: absolute; top: .55rem; right: .6rem; border: 0; padding: .2rem; background: none; color: inherit; font-size: .95rem; line-height: 1; cursor: pointer; opacity: .55; }
.test-nudge .nudge-close:hover { opacity: 1; }

.error-page { min-height: 100dvh; display: grid; place-items: center; padding: 2rem; background: var(--paper); text-align: center; }
.error-page h1 { font-size: clamp(3rem, 8vw, 8rem); }
.error-page p { margin-top: 1rem; }
.error-page a, .error-page button { display: inline-block; margin-top: 1.5rem; border: 0; background: var(--brick); color: var(--paper); padding: .9rem 1.2rem; font-weight: 900; cursor: pointer; }

@media (prefers-reduced-motion: no-preference) {
  .scroll-image img { animation: image-breathe linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .hero-copy > * { animation: rise-in .9s cubic-bezier(.16,1,.3,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise-in { from { transform: translateY(24px); } to { transform: translateY(0); } }
  @keyframes image-breathe { 0% { transform: scale(1.08) translateY(2%); } 50% { transform: scale(1) translateY(0); } 100% { transform: scale(1.06) translateY(-2%); } }
}

@media (max-width: 900px) {
  .site-nav { grid-template-columns: 1fr auto; padding: env(safe-area-inset-top) 1rem 0; }
  .site-nav nav { display: none; }
  .hero-copy { width: 100%; padding-inline: 1rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 5.2rem); }
  .section { padding: 5rem 1rem; }
  .checker, .cost, .proof, .visual-band, .terms, .founder, .faq, .final-cta { grid-template-columns: 1fr; }
  .checker, .cost, .proof, .visual-band, .terms, .founder, .faq { gap: 3rem; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { min-height: 52px; }
  .test-grid { grid-template-columns: 1fr; }
  .test-grid article { min-height: 160px; }
  .cost { grid-template-columns: 1fr; }
  .proof-number { font-size: 45vw; }
  .term-grid {
    grid-template-columns: unset;
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-behavior: auto;
    margin-inline: -1rem;
    padding-inline: 1rem;
    padding-block: .2rem;
    background: none;
    border: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .term-grid::-webkit-scrollbar { display: none; }
  .term-grid article {
    position: relative;
    flex: 0 0 78%;
    min-height: 200px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .term-arrow { display: block; position: absolute; right: 1.3rem; bottom: 1.3rem; width: 1.35rem; height: 1.35rem; color: var(--olive); }
  .founder > .brand-mark { width: 170px; }
  .stack-card { min-height: 60dvh; min-width: 0; }
  .stack-card h3 { font-size: clamp(2.4rem, 11vw, 3.4rem); overflow-wrap: break-word; hyphens: auto; }
  .footer-links { flex-direction: column; }
  .footer-wordmark { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; margin: 3rem 0; font-size: 26vw; }
  .footer-wordmark .brand-mark { width: 104px; }
}

@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; min-height: auto; }
  .hero-copy { position: static; width: 100%; min-height: auto; padding: 3.2rem 1rem 2.8rem; }
  .hero-video { position: relative; inset: auto; order: 2; height: 46dvh; object-position: 62% 32%; }
  .hero-shade { display: none; }
  .float-cta-wrap { left: 50%; right: auto; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(14px); }
  .float-cta-wrap.is-on { transform: translateX(-50%); }
  .float-cta-x { display: grid; }
  .test-nudge { display: none; }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .hero { background-image: none; }
}

@media (max-width: 520px) {
  .brand span:last-child { display: none; }
  .founder h2 { hyphens: auto; }
  .nav-cta { font-size: .72rem; }
  .section h2 { font-size: clamp(1.9rem, 9.5vw, 3.6rem); }
  .url-check { padding: 1.3rem; }
  .term-grid article { flex-basis: 84%; min-height: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stack-card { position: relative; top: auto; }
  .hero-video { display: none; }
  .hero { background: var(--forest) url('/assets/hero-control-room.webp') center/cover no-repeat; }
}
