/* ============================================================
   QTradeX · Base
   Reset · @font-face · Typografie-Basis
   ============================================================ */

/* ----------------------------------------------------------
   @font-face — selbst gehostet (DSGVO-sicher)
   WOFF2-Dateien liegen unter assets/fonts/
   Nur tatsächlich genutzte Schnitte laden.
   ---------------------------------------------------------- */

/* Spectral — Markenschrift */
@font-face {
  font-family: 'Spectral';
  src: url('../fonts/Spectral-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spectral';
  src: url('../fonts/Spectral-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Inter — UI- und Fließtextschrift */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* JetBrains Mono — Zahlen- und Datenschrift */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----------------------------------------------------------
   TYPOGRAFIE-BASIS
   ---------------------------------------------------------- */

/* Display — Hero-Headlines */
.text-display {
  font-family: var(--font-brand);
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* H1 */
h1, .text-h1 {
  font-family: var(--font-brand);
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

/* H2 */
h2, .text-h2 {
  font-family: var(--font-brand);
  font-size: var(--text-h2);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* H3 */
h3, .text-h3 {
  font-family: var(--font-brand);
  font-size: var(--text-h3);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  color: var(--color-text);
}

/* Lead */
.text-lead {
  font-family: var(--font-ui);
  font-size: var(--text-lead);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  color: var(--color-text);
}

/* Body */
p, .text-body {
  font-family: var(--font-ui);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  color: var(--color-text);
}

/* Body Small */
.text-body-small {
  font-family: var(--font-ui);
  font-size: var(--text-body-small);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Caption */
.text-caption {
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Data */
.text-data {
  font-family: var(--font-data);
  font-size: var(--text-data);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-text);
}

/* Data Large */
.text-data-large {
  font-family: var(--font-data);
  font-size: var(--text-data-large);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--color-text);
}

/* Akzent-Text */
.text-accent {
  color: var(--color-accent);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-tertiary {
  color: var(--color-text-tertiary);
}

/* ----------------------------------------------------------
   UTILITY
   ---------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Trennlinie */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Platin-Linie als Marken-Element */
.brand-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-platin);
  opacity: 0.3;
}
