/* ==========================================================================
   NexaMINT – Grundlagen: Typografie, Links, Fokus, Hilfsklassen
   ========================================================================== */

/* Schriftarten werden lokal eingebunden. Liegen die Dateien nicht vor,
   greifen die Systemschriften aus --font-heading / --font-body.
   Siehe docs/design-system.md, Abschnitt Typografie. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100vh;
  background-color: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Überschriften ------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.35rem + 3.2vw, 3.125rem);
  line-height: var(--leading-tight);
}

h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  line-height: var(--leading-snug);
}

h3 {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.35;
}

h4 {
  font-size: var(--text-lg);
  line-height: 1.4;
}

p {
  text-wrap: pretty;
}

/* --- Links --------------------------------------------------------------- */

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--nexa-graphite);
}

/* --- Fokus: immer deutlich sichtbar -------------------------------------- */

:focus-visible {
  outline: 3px solid var(--nexa-turquoise-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Auswahl ------------------------------------------------------------- */

::selection {
  background: var(--nexa-mist);
  color: var(--nexa-deep);
}

/* --- Hilfsklassen -------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--nexa-deep);
  color: var(--nexa-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--nexa-white);
}

/* Honeypot-Feld: für Menschen unsichtbar, für Screenreader ausgeblendet.
   Bewusst nicht display:none, damit einfache Bots es dennoch ausfüllen. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.no-wrap {
  white-space: nowrap;
}
