/* =========================================================
   FLOJU24 — "Aus Chaos wird Ordnung"
   Navy premium · particle ledger · mint / azure / violet
   ========================================================= */

:root {
  --bg: #0a1220;
  --bg-2: #0c1626;
  --panel: #101d33;
  --panel-2: #13233c;
  --ink: #eaf1f9;
  --muted: #93a4bc;
  --faint: #64768f;
  --line: rgba(234, 241, 249, .11);
  --line-2: rgba(234, 241, 249, .06);

  --a1: #46e0b0;
  /* mint  — Unternehmer / Wachstum */
  --a1-ink: #032018;
  --a2: #6c9bff;
  /* azure — International / Wegzug */
  --a3: #a78bff;
  /* violet — KI-Kanzlei / Zukunft */

  --disp: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--disp);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.05;
  text-wrap: balance;
}

::selection {
  background: var(--a1);
  color: var(--a1-ink);
}

/* ---------- Canvas + atmosphere (hero only) ---------- */
#webgl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.atmos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 12%, rgba(108, 155, 255, .08), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav,
main,
.foot {
  position: relative;
  z-index: 2;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}

.loader.done {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(78vw, 340px);
  text-align: center;
}

.loader-mark {
  font-family: var(--disp);
  font-size: 26px;
  letter-spacing: -.02em;
}

.loader-mark b {
  color: var(--a1);
  font-weight: 600;
}

.loader-bar {
  height: 1px;
  background: var(--line);
  margin: 18px 0 9px;
  overflow: hidden;
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--a1);
}

.loader-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .12em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 46px);
  transition: background .4s var(--ease), padding .35s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 18, 32, .62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-2);
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  font-family: var(--disp);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand .mk {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: conic-gradient(from 210deg, var(--a1), var(--a2), var(--a3), var(--a1));
}

.brand .llc {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  align-self: center;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--a1);
  transition: width .3s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-solid {
  background: var(--a1);
  color: var(--a1-ink);
  font-weight: 600;
}

.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(70, 224, 176, .25);
}

.btn-line {
  border-color: var(--line);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.nav-cta {
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------- Layout ---------- */
section {
  padding: clamp(84px, 13vh, 170px) clamp(18px, 4vw, 46px);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--a1);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  position: relative;
  overflow: hidden;
}

/* soft blend from the hero canvas into the calm sections below */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero .wrap {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero .hero-foot {
  z-index: 2;
}

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  overflow: hidden;
}

.hero .eyebrow>span {
  display: inline-block;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 132px);
  line-height: .92;
  max-width: 14ch;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--a1), var(--a2) 55%, var(--a3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line>span {
  display: inline-block;
}

.hero-sub {
  max-width: 46ch;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6;
  text-shadow: 0 1px 18px rgba(10, 18, 32, .9);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-foot {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--faint);
  text-transform: uppercase;
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scroll-hint i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--a1), transparent);
  animation: slide 2.2s var(--ease) infinite;
}

@keyframes slide {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  45% {
    transform: scaleX(1);
    transform-origin: left;
  }

  55% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* ---------- Manifesto ---------- */
.manifesto .wrap {
  max-width: 960px;
}

.manifesto p {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 54px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--muted);
}

.manifesto .hl {
  color: var(--ink);
}

.manifesto [data-line] {
  display: block;
}

/* ---------- Acts (three audiences) ---------- */
.act {
  border-top: 1px solid var(--line);
}

.act .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.act.flip .act-media {
  order: 2;
}

.act-head .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--act, var(--a1));
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-head .kicker b {
  font-weight: 500;
  color: var(--ink);
}

.act-head .no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.act-head h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin-bottom: 20px;
}

.act-head h2 em {
  font-style: normal;
  color: var(--act, var(--a1));
}

.act-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 46ch;
  line-height: 1.6;
}

.act-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 13px;
}

.act-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
}

.act-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--act, var(--a1));
}

.act-list li span {
  color: var(--muted);
}

.act-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.act .btn-solid {
  background: var(--act, var(--a1));
}

.act .btn-solid:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, .1);
}

/* media panel */
.act-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.1;
  background: var(--panel);
}

.act-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  filter: saturate(.9) contrast(1.02);
}

.act-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 18, 32, .55)),
    linear-gradient(120deg, var(--act, var(--a1)) -20%, transparent 45%);
  opacity: .5;
  mix-blend-mode: soft-light;
}

.act-media .chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 18, 32, .6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px;
}

/* ---------- Steps ---------- */
.steps .wrap {
  display: grid;
  gap: 40px;
}

.steps-head {
  max-width: 640px;
}

.steps-head h2 {
  font-size: clamp(30px, 5vw, 52px);
  margin-top: 16px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 30px 26px 34px;
  transition: background .35s var(--ease);
}

.step:hover {
  background: var(--panel);
}

.step .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--a1);
  letter-spacing: .1em;
}

.step h3 {
  font-family: var(--disp);
  font-size: 20px;
  margin: 16px 0 9px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Stats ---------- */
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 5vw, 64px);
  text-align: center;
}

.stat .fig {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, var(--ink), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat .cap {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.contact .wrap {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
}

.contact h2 {
  font-size: clamp(32px, 5vw, 58px);
  margin-bottom: 22px;
}

.contact .lead {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  max-width: 42ch;
  line-height: 1.6;
}

.cinfo {
  margin-top: 34px;
  display: grid;
  gap: 20px;
}

.cinfo .row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.cinfo .row .v {
  font-size: 17px;
}

.cinfo .row .v a:hover {
  color: var(--a1);
}

/* form */
form.studio-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 4px rgba(70, 224, 176, .14);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin-bottom: 16px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--a1);
  flex: none;
}

.form-msg {
  margin-top: 14px;
  font-size: 14.5px;
  display: none;
}

.form-msg.ok {
  display: block;
  color: var(--a1);
}

.form-msg.err {
  display: block;
  color: #ff8b7a;
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 46px clamp(18px, 4vw, 46px) 40px;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.foot .legal {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

.foot .legal a:hover {
  color: var(--a1);
}

.foot .copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding-top: 130px;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal .label {
  margin-bottom: 18px;
}

.legal h1 {
  font-size: clamp(34px, 6vw, 60px);
  margin-bottom: 34px;
}

.legal h2 {
  font-family: var(--disp);
  font-size: 22px;
  margin: 40px 0 12px;
}

.legal h3 {
  font-family: var(--disp);
  font-size: 17px;
  margin: 24px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal p {
  margin: 0 0 14px;
}

.legal a {
  color: var(--a1);
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.legal address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.8;
}

.legal .ph {
  background: rgba(70, 224, 176, .1);
  border: 1px dashed var(--a1);
  border-radius: 6px;
  padding: 1px 8px;
  color: var(--a1);
  font-family: var(--mono);
  font-size: 13.5px;
}

.legal .note {
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 40px;
    background: rgba(12, 22, 38, .96);
    backdrop-filter: blur(16px);
    transform: translateX(105%);
    transition: transform .4s var(--ease);
  }

  .nav-links.open {
    transform: none;
  }

  .nav-links a {
    font-size: 20px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: block;
    z-index: 40;
  }

  .act .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
  }

  .act.flip .act-media {
    order: 0;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 520px) {

  .frow,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-foot {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* No-JS fallback: never hide content */
.no-js .reveal {
  opacity: 1;
  transform: none;
}
