/* ============================================================
   Black Swan Global Limited — bsg.limited
   Design-System nach Briefing: weiß/minimalistisch, Slate-Akzent,
   Struktur über Hairlines & Weißraum, keine Schatten, keine Deko.
   ============================================================ */

/* Fonts lokal (DSGVO). Inter & Inter Tight als Variable Fonts (ein File, alle Gewichte). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-tight-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  --ink: #000000;
  --slate: #2d3748;
  --slate-light: #4a5568;
  --slate-mid: #5d6b80; /* dunkler als Original-Token #718096, sonst WCAG-AA-Kontrast verfehlt */
  --line: #e2e8f0;
  --surface: #f7f8fa;
  --paper: #ffffff;

  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--slate-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--slate); text-decoration: none; }
p a, li a, dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
p a:hover, li a:hover, dd a:hover { text-decoration-color: var(--slate); }

::selection { background: var(--slate); color: #fff; }

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

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display {
  font-size: clamp(42px, 6.4vw, 82px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 600;
}

.title-lg { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.028em; }
.title-md { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mid);
}

.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 62ch; }

strong { color: var(--slate); font-weight: 600; }

/* Sichtbarer Keyboard-Fokus */
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  background: var(--slate);
  color: #fff;
  border: 1px solid var(--slate);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--slate); background: transparent; color: var(--ink); }

.btn.on-dark { background: #fff; color: var(--slate); border-color: #fff; }
.btn.on-dark:hover { background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding: 8px 14px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.site-nav a.btn[aria-current="page"] { color: #fff; text-decoration: none; }
.site-nav a.btn[aria-current="page"]:hover { color: #fff; }
.site-nav .btn { margin-left: 14px; padding: 11px 20px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 6vw, 90px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero .mono-label { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.hero .mono-label::after { content: ''; height: 1px; background: var(--line); flex: 1; max-width: 180px; }
.hero h1 { margin-bottom: 30px; }
.hero .lead { margin-bottom: 42px; color: var(--slate-light); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: clamp(160px, 22vw, 280px); height: auto; }

/* Dezenter Hero-Fade (einzige Lade-Animation, Briefing 6.3) */
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-grid > * { animation: heroFade .7s ease both; }
.hero-grid > *:nth-child(2) { animation-delay: .12s; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section.hairline-top { border-top: 1px solid var(--line); }
.section.on-surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 18px; }
.section-head .idx { font-family: var(--font-mono); font-size: 13px; color: var(--slate-mid); }
.section-head h2 { max-width: 20ch; }
.section-sub { max-width: 58ch; margin-bottom: clamp(38px, 5vw, 64px); }

/* ---------- Diagramm ---------- */
.diagram-frame { border: 1px solid var(--line); background: var(--paper); padding: clamp(18px, 3vw, 40px); overflow-x: auto; }
.diagram-frame svg { width: 100%; height: auto; min-width: 640px; display: block; }
.diagram-caption { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--slate-mid); }
@keyframes flowDash { to { stroke-dashoffset: -14; } }
.flow { stroke-dasharray: 5 9; animation: flowDash 1.6s linear infinite; }

/* ---------- Leistungs-Raster ---------- */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.svc { border-top: 1px solid var(--line); padding-top: 26px; }
.svc .mono-label { display: block; margin-bottom: 18px; }
.svc h3 { font-size: 20px; margin-bottom: 12px; }
.svc p { font-size: 15.5px; }
.svc .more { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.svc .more:hover { color: var(--ink); }

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

/* ---------- Statement-Band ---------- */
.statement { position: relative; overflow: hidden; }
.statement .inner { max-width: 880px; }
.statement p.big {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}
.statement .watermark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 300px;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Prozess / How we work ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step-item { border-top: 1px solid var(--line); padding-top: 26px; }
.step-item .mono-label { display: block; margin-bottom: 18px; }
.step-item h3 { font-size: 19px; margin-bottom: 10px; }
.step-item p { font-size: 15px; }

.terms-note {
  margin-top: clamp(40px, 5vw, 60px);
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14.5px;
  max-width: 760px;
}
.terms-note .mono-label { display: block; margin-bottom: 10px; }

/* ---------- Service-Detailliste (/services) ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.svc-detail:last-of-type { border-bottom: 1px solid var(--line); }
.svc-detail .meta .mono-label { display: block; margin-bottom: 12px; }
.svc-detail h3 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 4px; }
.svc-detail .cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.svc-detail .cols h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 10px;
}
.svc-detail .cols p { font-size: 15px; }
.svc-detail ul.stack { list-style: none; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-detail ul.stack li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-light);
  border: 1px solid var(--line);
  padding: 4px 10px;
  background: var(--paper);
}

/* ---------- Case-Liste (/work) ---------- */
.case {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(24px, 4vw, 60px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case h3 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 14px; }
.case .facts { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px 28px; }
.case .facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.case .facts .mono-label { display: block; margin-bottom: 4px; font-size: 10.5px; }
.case .facts span { font-size: 14px; color: var(--slate); }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 90px); }
.about-cols .facts-table { border-top: 2px solid var(--ink); }
.facts-table dl { display: grid; grid-template-columns: 170px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-table dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-mid); padding-top: 3px; }
.facts-table dd { font-size: 15px; color: var(--slate); }

/* ---------- Kontakt ---------- */
.contact-cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); }
.contact-form { display: grid; gap: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 13px 15px;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--slate); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: var(--slate-mid); }
.form-status { font-size: 14.5px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA-Band (dunkel) ---------- */
.cta-band { background: var(--slate); color: #cbd5e0; }
.cta-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(56px, 7vw, 90px); }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 52ch; }
.cta-band a.mail { color: #fff; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 54px; font-size: 13px; color: var(--slate-mid); }
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.site-footer .top img { height: 40px; width: auto; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-light); }
.footer-nav a:hover { color: var(--ink); }
.site-footer .legal-line { border-top: 1px solid var(--line); padding-top: 22px; line-height: 1.8; }

/* ---------- Unterseiten-Kopf ---------- */
.page-head { padding: clamp(60px, 8vw, 100px) 0 clamp(36px, 5vw, 60px); }
.page-head .mono-label { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.page-head .mono-label::after { content: ''; height: 1px; background: var(--line); flex: 1; max-width: 180px; }
.page-head h1 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -0.03em; margin-bottom: 22px; }
.page-head .lead { color: var(--slate-light); }

/* ---------- Legal / Prose ---------- */
.prose { max-width: 760px; padding-bottom: clamp(70px, 9vw, 120px); }
.prose h2 { font-size: 21px; margin: 44px 0 14px; }
.prose p, .prose li { font-size: 15.5px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose .facts-table { border-top: 2px solid var(--ink); margin: 20px 0 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .cols-3, .cols-2, .steps { grid-template-columns: 1fr; }
  .svc-detail, .case { grid-template-columns: 1fr; gap: 18px; }
  .svc-detail .cols { grid-template-columns: 1fr; }
  .case .facts { grid-template-columns: 1fr 1fr; }
  .about-cols, .contact-cols { grid-template-columns: 1fr; }
  .cta-band .wrap { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--pad) 26px;
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin-left: 0; margin-top: 12px; }
}
