/* ═══════════════════════════════════════════════════════
   SCAFA INVESTMENT LLC
   Relaunch September 2026 — Hairline / Terminal System

   Akzente sind SCAFA-Gruen und -Amber (CLAUDE.md), nicht
   die oklch-Werte des Designplans. Der Plan haelt den
   Akzent ausdruecklich fuer umstellbar.
   ═══════════════════════════════════════════════════════ */

:root {
  --ground:   #08090b;
  --panel:    #0d0f11;
  --panel-2:  #0a0c0e;
  --line:     rgba(255, 255, 255, 0.09);
  --line-soft:rgba(255, 255, 255, 0.05);

  --ink:      #e8eaec;
  --ink-2:    #9aa1a6;
  --ink-3:    #6b7176;

  --acc:      #6DC424;   /* Technik, Immobilien, CTA, Status */
  --acc-dim:  rgba(109, 196, 36, 0.12);
  --acc-2:    #FBBF24;   /* Produktion und Verpackung */
  --acc-2-dim:rgba(251, 191, 36, 0.12);

  --shell:    1440px;
  --gutter:   24px;
  --rhythm:   96px;

  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --mark: 'Orbitron', var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

p { margin: 0; }

::selection { background: var(--acc); color: #08090b; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #23282c; }
::-webkit-scrollbar-thumb:hover { background: #333a3f; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}


/* ─── Bausteine ─────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section {
  padding: var(--rhythm) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 64px;   /* Hoehe der klebenden Kopfzeile */
}

.section-head { margin-bottom: 48px; }

.section-title {
  font-size: clamp(30px, 3.6vw, 48px);
  margin-top: 12px;
}

.lede {
  margin-top: 18px;
  max-width: 54ch;
  font-size: 17px;
  color: var(--ink-2);
}

.rule-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--acc);
}

.rule-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Hairline-Raster: 1px Abstand auf heller Flaeche = echte Trennlinien */
.grid-hair {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cell {
  background: var(--ground);
  padding: 32px;
}


/* ─── Kopfzeile ─────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.wordmark .glyph {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--acc);
  color: var(--acc);
  font-family: var(--mark);
  font-size: 13px;
  font-weight: 700;
}

.wordmark .name {
  font-family: var(--mark);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.masthead nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.masthead nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: color 0.18s;
}

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

.call {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 14px;
  border: 1px solid var(--acc);
  color: var(--acc);
  transition: background 0.18s, color 0.18s;
}

.call:hover { background: var(--acc); color: #08090b; }

/* Der Kontakt-Knopf sitzt auf Desktop in der Leiste,
   auf Mobil im aufgeklappten Menue — nie an beiden Orten */
.call-in-nav { display: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
}


/* ─── Hero ──────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0 0;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-bg .mesh {
  position: absolute;
  inset: -64px 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: mesh-drift 9s linear infinite;
}

@keyframes mesh-drift {
  to { transform: translateY(64px); }
}

.hero-bg .glow-a,
.hero-bg .glow-b {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-bg .glow-a {
  top: -22%;
  left: -12%;
  background: radial-gradient(circle, rgba(109, 196, 36, 0.09), transparent 66%);
}

.hero-bg .glow-b {
  bottom: -30%;
  right: -14%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.06), transparent 66%);
}

.hero-bg .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 196, 36, 0.32), transparent);
  animation: scan 7s linear infinite;
}

@keyframes scan {
  0%   { top: 0;    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.claim {
  font-size: clamp(40px, 6.2vw, 78px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.claim .second {
  display: block;
  color: var(--ink-3);
}

.hero p.lede { font-size: clamp(16px, 1.3vw, 19px); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

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

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

.btn-acc:hover { background: var(--acc); color: #08090b; }


/* ─── Terminal-Panel ────────────────────────────────── */

.term {
  background: var(--panel);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3035;
  display: block;
}

.term-bar .title {
  margin-left: 6px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}

.term-bar .clock {
  margin-left: auto;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.term-rows { padding: 6px 0; }

.term-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 16px;
}

.term-row .k { color: var(--ink-3); }

.term-row .v {
  margin-left: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.term-row .v.on { color: var(--acc); }

.term-cmd {
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
}

.term-cmd .prompt { color: var(--acc); }

.term-cmd .cursor { color: var(--acc); }

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  display: inline-block;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--acc);
  opacity: 0;
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}


/* ─── Ticker ────────────────────────────────────────── */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 22px;
}

.ticker-track span::after {
  content: '/';
  margin-left: 22px;
  color: var(--acc);
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}


/* ─── Engineering / Code-Panel ──────────────────────── */

.eng-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.caps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.caps li {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  color: var(--ink-2);
  font-size: 15px;
}

.code {
  background: var(--panel);
  border: 1px solid var(--line);
}

.code-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.code-tab {
  appearance: none;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.code-tab:hover { color: var(--ink-2); }

.code-tab[aria-selected="true"] {
  color: var(--acc);
  background: var(--acc-dim);
}

.code-body {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-2);
  tab-size: 2;
}

.code-body[hidden] { display: none; }

.code-body .c { color: var(--ink-3); }            /* Kommentar */
.code-body .k { color: var(--acc); }              /* Schluesselwort */
.code-body .s { color: var(--acc-2); }            /* String */
.code-body .t { color: var(--ink); }              /* Typ */

.shot {
  margin-top: 1px;
  border: 1px solid var(--line);
  border-top: 0;
}

.shot figcaption {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.shot figcaption b { color: var(--ink-2); font-weight: 400; }


/* ─── Produktblöcke ─────────────────────────────────── */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}

.product > * { background: var(--ground); }

.product-body {
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-shot {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Bild links, Text rechts — im Wechsel */
.product--flip .product-body { order: 2; }
.product--flip .product-shot { order: 1; }

.product-name {
  font-size: clamp(24px, 2.6vw, 34px);
  margin-top: 10px;
}

.product-kind { color: var(--acc); }
.product--amber .product-kind { color: var(--acc-2); }

.product-desc {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
}

.product-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.product-link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--acc);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s;
}

.product-link:hover { border-bottom-color: var(--acc); }

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
}

.state.beta i { background: var(--acc-2); }


/* ─── Konzernstruktur ───────────────────────────────── */

/* Holding und Stiel teilen sich eine Breite, damit die
   Verbindungslinie mittig unter dem Kasten sitzt */
.trunk { max-width: 760px; }

.holding {
  border: 1px solid var(--acc);
  background: var(--acc-dim);
  padding: 28px 32px;
}

.stem {
  width: 1px;
  height: 40px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--acc), var(--line));
}

.entity-loc {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}

.figure {
  background: var(--ground);
  padding: 32px;
}

.figure .n {
  font-family: var(--mono);
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}


/* ─── Kontakt ───────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.dl {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
}

.dl dt {
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11.5px;
  margin-top: 22px;
}

.dl dd { margin: 2px 0 0; }

.dl a { color: var(--acc); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
}

.form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.form-head b { color: var(--acc); font-weight: 400; }

.form-body { padding: 24px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 0.18s;
}

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

/* Aufgeklappte Liste erbt die Systemfarben nicht — explizit setzen */
.field select option {
  background: var(--panel-2);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--acc);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.send {
  width: 100%;
  min-height: 48px;
  background: var(--acc);
  border: 0;
  color: #08090b;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: filter 0.18s;
}

.send:hover { filter: brightness(1.12); }

.ok {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--acc);
  background: var(--acc-dim);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
}

.ok b { color: var(--acc); font-weight: 400; }


/* ─── Fusszeile ─────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0;
}

.foot h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 18px;
}

.foot ul { margin: 0; padding: 0; list-style: none; }

.foot li { margin-bottom: 10px; }

.foot li a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.18s;
}

.foot li a:hover { color: var(--acc); }

.disclaimer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 100ch;
}

.disclaimer b { color: var(--ink-2); font-weight: 500; }

.colophon {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
}


/* ─── Umbrueche ─────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-grid,
  .eng-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }

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

@media (max-width: 860px) {
  :root { --rhythm: 64px; }

  .masthead nav { display: none; }
  .masthead nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }
  .masthead nav.open a { padding: 13px 0; width: 100%; }
  .burger { display: block; }
  .call-in-bar { display: none; }
  .masthead nav.open .call-in-nav {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 13px 16px;
  }

  .product,
  .figures { grid-template-columns: minmax(0, 1fr); }

  /* Bild immer zuerst, damit der Wechsel mobil nicht stoert */
  .product .product-shot { order: 1; }
  .product .product-body { order: 2; }

  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .cell { padding: 24px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-bg .scan { display: none; }
}
