/* ntwrks.de — dark / technical / bilingual one-pager
   Hand-built, zero external requests (privacy-friendly). */

:root {
  --bg:        #0a0b0d;
  --bg-soft:   #101216;
  --panel:     #121419;
  --line:      #1e222b;
  --line-soft: #181b22;
  --text:      #e8eaed;
  --muted:     #8b919c;
  --faint:     #5a606b;
  --accent:    #38e8c4;       /* mint-cyan signal */
  --accent-dim:#1c8d78;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #04140f; }

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

img { display: block; }

/* ---------- decorative background ---------- */
.grid-bg {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  opacity: .5;
}
.glow {
  position: fixed; z-index: -1;
  top: -28vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 70vh;
  background: radial-gradient(closest-side, rgba(56,232,196,.10), transparent 70%);
  pointer-events: none;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #04140f; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(10,11,13,.82), rgba(10,11,13,.45));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10,11,13,.9); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { height: 26px; width: auto; }
.brand-name {
  font-family: var(--mono); font-weight: 600; letter-spacing: .02em;
  font-size: 18px; color: var(--text);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: .03em;
  color: var(--muted); transition: color .2s var(--ease); position: relative;
}
.nav > a:hover { color: var(--text); }
.nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: var(--accent); transition: right .25s var(--ease);
}
.nav > a:hover::after { right: 0; }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
  padding-left: 22px; border-left: 1px solid var(--line);
}
.lang button {
  background: none; border: 0; padding: 2px 2px; cursor: pointer;
  font: inherit; color: var(--faint); transition: color .2s var(--ease);
}
.lang button:hover { color: var(--muted); }
.lang button.active { color: var(--accent); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: clamp(72px, 12vw, 150px) 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: 0; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  color: var(--accent); margin: 0 0 18px;
}

.section-head h2, .contact h2 {
  font-size: clamp(28px, 4.5vw, 44px); line-height: 1.08; margin: 0;
  letter-spacing: -.02em; font-weight: 650;
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line-soft); padding-top: clamp(60px, 10vw, 110px); }
.hero-title {
  font-size: clamp(40px, 9vw, 92px); line-height: .98; letter-spacing: -.035em;
  font-weight: 680; margin: 8px 0 26px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  color: var(--accent);
  text-shadow: 0 0 38px rgba(56,232,196,.32);
}
.hero-sub {
  max-width: 60ch; font-size: clamp(17px, 2.1vw, 21px);
  color: var(--muted); margin: 0 0 38px;
}

.terminal {
  max-width: 560px; border: 1px solid var(--line); border-radius: 11px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  overflow: hidden; margin-bottom: 40px;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.8);
}
.terminal-bar {
  display: flex; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.015);
}
.terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.terminal-bar span:first-child { background: #2a2f39; }
.terminal-body {
  margin: 0; padding: 18px 18px 20px; font-family: var(--mono);
  font-size: 14.5px; color: var(--muted); overflow-x: auto;
}
.t-prompt { color: var(--accent); }
.t-path { color: #6ea8fe; }
.cursor { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; letter-spacing: .01em;
  padding: 13px 22px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #04140f; font-weight: 600; }
.btn-primary:hover { background: #5ff0d3; box-shadow: 0 0 0 4px rgba(56,232,196,.14); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { font-size: 16px; padding: 16px 30px; }

/* ---------- capabilities ---------- */
.section-head { margin-bottom: 48px; }
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.card {
  position: relative; background: var(--bg);
  padding: 36px 32px 40px;
  transition: background .25s var(--ease);
}
.card:hover { background: var(--panel); }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.card:hover::before { width: 100%; }
.card-no {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  letter-spacing: .1em;
}
.card h3 { font-size: 21px; margin: 14px 0 10px; letter-spacing: -.01em; font-weight: 620; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- approach ---------- */
.approach-statement {
  font-size: clamp(24px, 3.6vw, 38px); line-height: 1.22; letter-spacing: -.02em;
  font-weight: 560; max-width: 22ch; margin: 0 0 44px;
}
.approach-points {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.approach-points li {
  font-family: var(--mono); font-size: 14.5px; color: var(--muted);
  padding-top: 18px; border-top: 1px solid var(--line);
}
.approach-points li::before { content: "› "; color: var(--accent); }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact-sub { color: var(--muted); font-size: clamp(17px,2vw,20px); margin: 16px 0 36px; max-width: 48ch; }
.mail {
  display: inline-block; font-family: var(--mono);
  font-size: clamp(24px, 5vw, 46px); letter-spacing: -.02em;
  color: var(--text); border-bottom: 2px solid var(--line);
  padding-bottom: 6px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 30px 28px 46px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}
.foot-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.foot-brand .brand-mark { height: 17px; }
.copy { margin: 0; }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--faint); transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 16px; }
  .nav > a { display: none; }
  .lang { padding-left: 0; border-left: 0; }
  .cards { grid-template-columns: 1fr; }
  .approach-points { grid-template-columns: 1fr; gap: 0; }
  .approach-points li { padding: 16px 0; border-top: 1px solid var(--line); }
  .site-header { padding: 14px 20px; }
  main { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}

/* ---------- cookie consent ---------- */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  background: rgba(6,7,9,.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: cookie-fade .3s var(--ease);
}
.cookie-overlay[hidden] { display: none; }
.cookie-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  animation: cookie-up .38s var(--ease);
}
.cookie-title {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  color: var(--accent); margin: 0 0 10px;
}
.cookie-text { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.cookie-actions .btn { flex: 1; justify-content: center; padding: 11px 16px; font-size: 13.5px; }
.cookie-link {
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  transition: color .2s var(--ease);
}
.cookie-link:hover { color: var(--accent); }
@keyframes cookie-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookie-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .cookie-overlay { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-overlay, .cookie-card { animation: none; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.legal-main { padding: clamp(60px,10vw,120px) 0 100px; }
.legal h1 { font-size: clamp(30px,5vw,44px); letter-spacing: -.02em; margin: 0 0 8px; }
.legal h2 { font-size: 19px; margin: 40px 0 10px; letter-spacing: -.01em; }
.legal p, .legal address { color: var(--muted); margin: 0 0 14px; font-style: normal; }
.legal a { color: var(--accent); }
.legal .back {
  font-family: var(--mono); font-size: 13px; color: var(--faint);
  display: inline-block; margin-bottom: 40px;
}
.legal .back:hover { color: var(--accent); }
.legal .placeholder { color: var(--accent); background: rgba(56,232,196,.08); padding: 1px 6px; border-radius: 4px; }

/* ---------- contact form ---------- */
.form-intro { color: var(--muted); margin: 0 0 34px; max-width: 52ch; }
.contact-form { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted);
}
.field input, .field textarea {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font: inherit; font-size: 15.5px;
  padding: 13px 14px; outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,232,196,.12);
}
.contact-form .btn { align-self: flex-start; }
.form-privacy { font-size: 13px; color: var(--faint); margin: 0; }
.form-privacy a { color: var(--accent); }

/* honeypot: visually removed, still in DOM for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.notice {
  max-width: 560px; padding: 14px 16px; border-radius: 8px; margin: 0 0 26px;
  font-size: 15px; border: 1px solid;
}
.notice[hidden] { display: none; }
.notice-ok { border-color: rgba(56,232,196,.4); background: rgba(56,232,196,.07); color: var(--accent); }
.notice-err { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.07); color: #ff8f8f; }
