/* ============================================================
   Stuhlmann Solutions — landing page
   Accent is driven by one variable. Default: neon green.
   Switch to pink by setting  <html data-accent="pink">
   or toggling the accent switch in the footer.
   ============================================================ */

:root {
  --acc: #C6FF4A;            /* neon green (default) */
  --bg: #08090c;
  --fg: #f2f4f1;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1240px;
}

:root[data-accent="pink"] {
  --acc: #FF3EA5;           /* neon pink */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none; }
a:hover { color: color-mix(in srgb, var(--acc) 55%, #ffffff); }

::selection { background: color-mix(in srgb, var(--acc) 28%, transparent); color: var(--bg); }

.mono { font-family: var(--font-mono); }

/* ---- layout helpers ---- */
.page { position: relative; min-height: 100vh; overflow: clip; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.z1 { position: relative; z-index: 1; }

/* ---- atmosphere ---- */
.fine-grid {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 100%);
  /* vertical lines every 2.5% = one tenth of the coarse column grid's 25%,
     so every 10th line coincides with a coarse line. Horizontal lines match
     the ~31px cell height for a near-square net. */
  background:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 2.5% 100%,
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0 / 100% 31px;
  mask-image: radial-gradient(circle at 70% 12%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 70% 12%, #000 0%, transparent 78%);
  pointer-events: none;
}
/* interactive canvas net (JS-driven, gravity warp). Fixed so its vertical
   lines stay locked to the coarse column grid regardless of scroll. */
.grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
:root.has-canvas-grid .fine-grid,
:root.has-canvas-grid .col-grid { display: none; }
.glow {
  position: absolute;
  top: -340px; right: -240px;
  width: 980px; height: 980px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 11%, transparent), transparent 72%);
  animation: ss-drift 20s ease-in-out infinite;
  pointer-events: none;
}
.col-grid {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 100%);
  background:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
    linear-gradient(to left, rgba(255,255,255,0.05) 1px, transparent 1px) 100% 0 / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,9,12,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-brand {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav-brand .dash { color: var(--acc); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.nav-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: rgba(242,244,241,0.6); white-space: nowrap;
  transition: color 0.25s;
}
.nav-link:hover { color: var(--acc); }
.nav-cta {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--bg); background: var(--acc);
  padding: 9px 18px; white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--acc) 35%, transparent);
  color: var(--bg);
}

/* ---- hero ---- */
.hero { padding: clamp(90px, 15vh, 160px) 0 clamp(70px, 11vh, 120px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--acc); animation: ss-pulse 2s ease-in-out infinite;
}
.eyebrow .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--acc);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 78px); font-weight: 600;
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 0 -0.04em; max-width: 19ch;
}
.hero h1 .dot-acc { color: var(--acc); }
.caret {
  display: inline-block; width: 0.09em; height: 0.78em;
  background: var(--acc); margin-left: 0.12em;
  animation: ss-blink 1.1s steps(1) infinite;
}
.hero-lead {
  font-size: 17px; line-height: 1.7; max-width: 58ch;
  margin: 36px 0 0; color: rgba(242,244,241,0.72);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.hero-note {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: rgba(242,244,241,0.45); margin: 56px 0 0;
}

/* ---- buttons ---- */
.btn-primary {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--bg); background: var(--acc); padding: 15px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--acc) 40%, transparent);
  color: var(--bg);
}
.btn-ghost {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--fg); border: 1px solid rgba(255,255,255,0.22); padding: 14px 30px;
  transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

/* ---- marquee ---- */
.marquee {
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  overflow: hidden; padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: ss-marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  color: rgba(242,244,241,0.5); white-space: nowrap;
}
.marquee-item .sep { color: var(--acc); }

/* ---- tech / logo carousel ---- */
.techstrip {
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  overflow: hidden; padding: 22px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.techstrip-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: ss-marquee 38s linear infinite;
}
.techlogo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(242,244,241,0.5);
  white-space: nowrap; transition: color 0.25s;
}
.techlogo svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.9; flex: none; }
.techlogo:hover { color: var(--acc); }
@media (prefers-reduced-motion: reduce) {
  .techstrip-track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 20px; }
}

/* ---- section eyebrow ---- */
.sec-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--acc);
}

/* ---- services ---- */
.services { padding: clamp(72px, 11vh, 120px) 0 clamp(48px, 7vh, 80px); }
.services-head { display: flex; align-items: baseline; gap: 20px; margin: 0 0 24px; }
.service {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 14px clamp(24px, 4vw, 64px);
  padding: 44px 0; border-top: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}
.service:hover,
.service.is-active {
  transform: translateX(10px);
  background: linear-gradient(to right, color-mix(in srgb, var(--acc) 4%, transparent), transparent 60%);
}
.service .num { flex: 0 0 76px; font-family: var(--font-mono); font-size: 14px; color: var(--acc); margin: 0; }
.service h2 {
  flex: 1 1 240px; max-width: 360px;
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.1; margin: 0;
}
.service .copy {
  flex: 1 1 320px; font-size: 15.5px; line-height: 1.7; margin: 0;
  color: rgba(242,244,241,0.66); max-width: 52ch;
}
.services-rule { border-top: 1px solid rgba(255,255,255,0.1); }

/* ---- process ---- */
.process { padding: clamp(48px, 7vh, 80px) 0 clamp(72px, 11vh, 120px); }
.process-head { margin: 0 0 48px; }
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px clamp(28px, 4vw, 64px);
}
.step {
  display: flex; flex-direction: column; gap: 18px;
  border-top: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
  padding-top: 26px; height: 100%;
  transition: transform 0.35s;
}
.step:hover,
.step.is-active { transform: translateY(-4px); }
.step .num {
  font-size: clamp(64px, 6vw, 92px); font-weight: 700; line-height: 0.9;
  margin: 0 0 0 -0.03em; color: transparent;
  -webkit-text-stroke: 1.2px color-mix(in srgb, var(--acc) 55%, transparent);
  font-feature-settings: 'tnum' 1;
  transition: color 0.35s ease, -webkit-text-stroke-color 0.35s ease;
}
.step:hover .num,
.step.is-active .num {
  color: var(--acc);
  -webkit-text-stroke-color: transparent;
}
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.step .copy { font-size: 15px; line-height: 1.7; margin: 0; color: rgba(242,244,241,0.62); max-width: 40ch; }

/* ---- about ---- */
.about {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 48px clamp(32px, 5vw, 96px); align-items: start;
  padding: clamp(72px, 11vh, 120px) 0;
  border-top: 1px solid rgba(255,255,255,0.09);
}
.about h2 {
  font-size: clamp(28px, 3vw, 38px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 24px;
}
.about .lead { font-size: 15.5px; line-height: 1.75; margin: 0; color: rgba(242,244,241,0.68); max-width: 52ch; }
.portrait-wrap { max-width: 320px; width: 100%; justify-self: end; }
.portrait-frame { position: relative; aspect-ratio: 1 / 1; padding: 14px; overflow: hidden; }
.portrait-frame .corner { position: absolute; width: 22px; height: 22px; }
.portrait-frame .tl { top: 0; left: 0; border-top: 1px solid var(--acc); border-left: 1px solid var(--acc); }
.portrait-frame .tr { top: 0; right: 0; border-top: 1px solid var(--acc); border-right: 1px solid var(--acc); }
.portrait-frame .bl { bottom: 0; left: 0; border-bottom: 1px solid var(--acc); border-left: 1px solid var(--acc); }
.portrait-frame .br { bottom: 0; right: 0; border-bottom: 1px solid var(--acc); border-right: 1px solid var(--acc); }
.portrait-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  transform: scale(1.45);
  background: rgba(242,244,241,0.88);
  display: flex; align-items: center; justify-content: center;
}
.portrait-img.empty {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(8,9,12,0.55);
}
.portrait-cap {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(242,244,241,0.4); margin: 12px 0 0 14px;
}

/* ---- reference ---- */
.reference { padding: 0 0 clamp(72px, 11vh, 120px); }
.ref-card { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.02); }
.ref-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ref-head .l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(242,244,241,0.45); }
.ref-head .r { font-family: var(--font-mono); font-size: 12px; color: color-mix(in srgb, var(--acc) 60%, transparent); }
.ref-fig { margin: 0; padding: clamp(28px, 4vw, 56px); }
.ref-fig blockquote {
  font-size: clamp(21px, 2.4vw, 30px); font-weight: 500; line-height: 1.4;
  letter-spacing: -0.012em; max-width: 36ch; margin: 0;
}
.ref-fig figcaption {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--acc); margin: 28px 0 0;
}

/* ---- contact ---- */
.contact { padding: 0 0 clamp(56px, 8vh, 90px); }
.contact h2 {
  font-size: clamp(28px, 3vw, 38px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; max-width: 24ch;
}
.contact .lead { font-size: 15.5px; line-height: 1.7; margin: 0 0 40px; color: rgba(242,244,241,0.62); max-width: 52ch; }
.contact-email {
  display: inline-block; font-size: clamp(24px, 4.4vw, 58px); font-weight: 600;
  letter-spacing: -0.025em; color: var(--fg);
  border-bottom: 2px solid color-mix(in srgb, var(--acc) 40%, transparent);
  padding-bottom: 8px; transition: color 0.3s, border-color 0.3s;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--acc); border-color: var(--acc); }
.contact-meta { display: flex; gap: 14px 20px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.contact-loc { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(242,244,241,0.45); }

/* ---- legal pages (Impressum / Datenschutz) ---- */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vh, 120px) clamp(20px, 5vw, 72px) clamp(64px, 12vh, 140px); }
.legal .back { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(242,244,241,0.55); }
.legal .back:hover { color: var(--acc); }
.legal .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--acc); display: block; margin: 40px 0 14px; }
.legal h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 32px; }
.legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.005em; margin: 40px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.75; color: rgba(242,244,241,0.72); margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.legal strong { color: #f2f4f1; font-weight: 600; }
.legal .updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(242,244,241,0.4); margin-top: 48px; }

/* ---- footer ---- */
.footer { border-top: 1px solid rgba(255,255,255,0.09); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 72px) 44px;
  display: flex; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap;
}
.footer-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(242,244,241,0.4); margin: 0 0 8px; }
.footer-text { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8; color: rgba(242,244,241,0.6); margin: 0; }
.footer-text a { color: color-mix(in srgb, var(--acc) 80%, #f2f4f1); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: rgba(242,244,241,0.4); margin: 0; align-self: end; }

/* accent switch */
.accent-switch {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(242,244,241,0.4); background: none; border: none; cursor: pointer;
  padding: 0; margin-top: 10px;
}
.accent-switch .swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
.accent-switch:hover { color: var(--acc); }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.shown { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  .hide-mobile { display: none; }

  /* brand on its own row, then all 4 nav items evenly in one row below */
  .nav { padding: 10px 16px; gap: 8px; }
  .nav-links { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .nav-link, .nav-cta { font-size: 11px; letter-spacing: 0.04em; }
  .nav-cta { padding: 7px 11px; }

  .hero { padding: clamp(40px, 9vh, 80px) 0 clamp(38px, 7vh, 66px); }
  .hero-lead { font-size: 16px; margin-top: 26px; }
  .hero-actions { margin-top: 30px; }

  /* smaller buttons on mobile */
  .btn-primary, .btn-ghost { font-size: 11px; letter-spacing: 0.06em; padding: 10px 16px; }

  /* center the portrait in the single-column layout */
  .portrait-wrap { justify-self: center; }

  /* stack service rows so number / title / copy align left (no indent) */
  .service { flex-direction: column; gap: 10px; padding: 34px 0; }
  .service .num,
  .service h2,
  .service .copy { flex: none; max-width: none; }
}

/* ---- keyframes ---- */
@keyframes ss-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ss-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes ss-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-8%, 6%) scale(1.18); } }
@keyframes ss-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .glow, .marquee-track, .eyebrow .dot, .caret { animation: none; }
}
