/* =========================================================
   NoeSys Technologies – stylesheet
   1. Font  2. Design tokens  3. Base  4. Layout  5. Components
   6. Band  7. Sections  8. Legal pages  9. Responsive
   ========================================================= */

/* 1. Font (self-hosted, no Google request → GDPR friendly) */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* 2. Design tokens – colours taken from the logo */
:root {
  --bg:          #0b0a0e;   /* near black */
  --bg-raised:   #131118;
  --purple-700:  #4a27b0;
  --purple-500:  #6d4cc5;   /* band colour */
  --purple-300:  #a99cc9;   /* tagline colour */
  --text:        #ece6fb;   /* wordmark colour */
  --text-muted:  #9b94ad;
  --line:        rgba(240, 234, 255, .12);  /* thin white lines */
  --line-strong: rgba(240, 234, 255, .3);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --container: 1120px;
  --space: clamp(5rem, 11vw, 9rem);  /* vertical section spacing */
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--purple-300); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 1rem;
  background: var(--text); color: var(--bg); padding: .5rem 1rem; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* 4. Layout */
.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.section   { padding-block: var(--space); }
.split     { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem 4rem; align-items: start; }
.split-head h2 { margin: 0; }

/* 5. Components */
.eyebrow { font-size: .85rem; color: var(--purple-300); margin-bottom: 1rem; }
.hl   { color: var(--purple-300); }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 60ch; }

.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-small { padding: .45rem 1.1rem; font-size: .9rem; }
.btn-large { padding: 1rem 2rem; font-size: clamp(1rem, 2.5vw, 1.2rem); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 14, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-mark { width: 40px; }
.brand-word { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--text-muted); font-size: .95rem; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; }

/* 6. Band – one continuous ribbon of lines behind the whole page.
   assets/img/noesys-band.svg is made with artefacts/band-builder.html: 1440 px wide and two page
   heights tall, and its end joins its start, so it can repeat downwards without a seam. */
.page { position: relative; }
.page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/noesys-band.svg") center top / 100% auto repeat-y;
}
main, .site-footer { position: relative; z-index: 1; }

/* 7. Sections */

/* Hero */
.hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(5rem, 12vw, 10rem); }
.hero-logo img { width: min(520px, 86vw); height: auto; margin-bottom: 2.5rem; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.hero-lead  { font-size: 1.2rem; color: var(--text-muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* Leistungen: three short columns with a line on top */
.services-sec { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 4.5rem); }
.services-sec h2 { margin-bottom: 2rem; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
.svc > div { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.svc h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.svc p { color: var(--text-muted); margin: 0; }

/* Product teaser: one row, links to produkt.html */
.teaser-sec { padding-block: 0 clamp(2rem, 5vw, 3.5rem); }
.teaser {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .25rem 2rem;
  padding: 2rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  text-decoration: none; transition: border-color .2s;
}
.teaser:hover { border-color: var(--text); }
.teaser-label { color: var(--purple-300); font-size: .9rem; grid-row: 1 / 3; }
.teaser-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; }
.teaser-text  { color: var(--text-muted); grid-column: 2; }
.teaser-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }

/* Produkt */
.product-head { max-width: 760px; margin-bottom: 3rem; }
.product-head h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.product-shot { margin: 0 0 3.5rem; }
.product-shot img {
  width: 100%; height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.product-shot figcaption { margin-top: .9rem; font-size: .85rem; color: var(--text-muted); }

.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem;
}
.features li { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.features p  { color: var(--text-muted); margin: 0; }
.product-cta { margin: 3.5rem 0 0; font-size: 1.1rem; }
.product-cta a { color: var(--purple-300); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Leistungen – rows separated by thin lines, no cards */
.services { margin: 0; }
.services > div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.services > div:last-child { border-bottom: 1px solid var(--line); }
.services dt { font-size: 1.25rem; font-weight: 500; margin-bottom: .35rem; }
.services dd { margin: 0; color: var(--text-muted); max-width: 52ch; }

/* Arbeitsweise */
.principles p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.4rem; max-width: 56ch; }
.principles strong { color: var(--text); font-weight: 500; }

/* Kontakt */
.contact { text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.contact-inner { max-width: 760px; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.75rem; }
.contact .lead { margin: 0 auto 2.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .9rem; color: var(--text-muted); background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* 8. Legal pages (Impressum, Datenschutz) */
.legal { padding-block: clamp(3rem, 8vw, 6rem); max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5em; }
.legal h2 { font-size: 1.3rem; margin-top: 2.5em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--text-muted); }
.legal a { color: var(--purple-300); }

/* 9. Responsive */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .features { grid-template-columns: 1fr; gap: 2rem; }
  .svc { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .teaser-label, .teaser-text, .teaser-arrow { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform .25s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .page::before { opacity: .4; }   /* on phones the band runs closer to the text: keep it quieter */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Product page */
.product-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
