/* --------------------------------------------------------------------------
   IBM Plex Sans — self-hosted (woff2, variable weights 400–700)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   BASE.CSS — Custom Properties, Reset, Typography
   Compliance OS — DACH Market
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --c-primary:       #1a3a6b;
  --c-primary-dark:  #122d55;
  --c-primary-light: #e6edf7;
  --c-text:          #0f1923;
  --c-text-muted:    #48515e;
  --c-text-light:    #9199a6;
  --c-bg:            #ffffff;
  --c-bg-soft:       #f7f9fc;
  --c-bg-dark:       #0e1c2d;
  --c-heading:       #06111c;
  --c-border:        #e2e6ec;
  --c-border-strong: #c5ccd6;

  /* Typography */
  --font-base:   'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:   ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --leading-tight:  1.25;
  --leading-normal: 1.625;
  --leading-loose:  1.8;

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1120px;
  --container-pad: 1.5rem;

  /* Border */
  --radius-sm: 3px;
  --radius:    4px;
  --radius-lg: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 25, 50, 0.05), 0 1px 1px rgba(15, 25, 50, 0.03);
  --shadow:    0 2px 8px rgba(15, 25, 50, 0.07), 0 1px 3px rgba(15, 25, 50, 0.04);
  --shadow-lg: 0 4px 20px rgba(15, 25, 50, 0.09), 0 2px 6px rgba(15, 25, 50, 0.05);

  /* Transitions */
  --transition: 200ms ease-out;
}

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

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

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-heading);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-heading);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--c-heading);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--c-heading);
}

p {
  color: var(--c-text);
}

p + p {
  margin-top: var(--space-5);
}

strong {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--c-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
}

.text-muted { color: var(--c-text-muted); }
.text-small { font-size: var(--text-sm); }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Focus Visible
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
