/* Silver Brothers - Basis: Fonts, Tokens, Reset, Nav, Footer, Utilities */
/* Theme "Rauchkammer": ein dunkles Theme, scharfkantig, ein Akzent */

/* ==================== Fonts (selbst gehostet) ==================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-400.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-500.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-700.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-400.woff2") format("woff2");
}

/* ==================== Tokens ==================== */

:root {
  --bg: #101214;
  --bg-2: #16191C;
  --text: #E8EAEC;
  --muted: #9BA3AB;
  --silver: #C9CED4;
  --accent: #C44536;
  --line: #23282D;

  --font-sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-disp: "Archivo Black", "Arial Black", system-ui, sans-serif;

  --nav-h: 64px;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ==================== Reset ==================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-sans);
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* ==================== Typo-Bausteine ==================== */

h2 {
  font-family: var(--font-disp);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
}

.sec-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-intro {
  color: var(--muted);
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.0625rem;
}

.section {
  padding: clamp(72px, 10vw, 136px) 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.block {
  display: block;
}

/* ==================== Buttons ==================== */
/* CTA-Kontrast: helle Schrift auf Akzent (4.1:1) bei 19px fett = grosse Schrift, WCAG AA erfuellt */

.btn {
  display: inline-block;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  padding: 18px 30px;
  text-decoration: none;
}

.btn:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--bg);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--silver);
  border-color: var(--silver);
  color: var(--bg);
}

/* ==================== Skip-Link ==================== */

/* Helle Schrift auf Akzent, 19px fett = grosse Schrift, WCAG AA erfuellt */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
}

.skip-link:focus-visible {
  left: 12px;
  top: 12px;
}

/* ==================== Nav (einzeilig, unter 72px) ==================== */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(16, 18, 20, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--silver);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 29px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-cta {
  margin-left: auto;
}

.nav-links + .nav-cta {
  margin-left: 0;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

/* ==================== Footer ==================== */

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

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 560px;
}

.foot-mark {
  width: 34px;
  height: 32px;
  flex: none;
}

.foot-draft {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 9px 14px;
}

/* ==================== Motion (nur ohne reduced-motion) ==================== */

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

  .btn,
  .btn-outline,
  .brand,
  .nav-links a {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  html.js .bento .cell:nth-child(2).reveal { transition-delay: 0.05s; }
  html.js .bento .cell:nth-child(3).reveal { transition-delay: 0.1s; }
  html.js .bento .cell:nth-child(4).reveal { transition-delay: 0.15s; }
  html.js .bento .cell:nth-child(5).reveal { transition-delay: 0.2s; }
  html.js .bento .cell:nth-child(6).reveal { transition-delay: 0.25s; }
}
