/* ==========================================================================
   it-mp.de — main.css
   Reset · Variables · @font-face · Typografie · Layout
   ========================================================================== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/DMSans-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/DMSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/DMSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/DMMono-Regular.woff2') format('woff2');
}

:root {
  --c-bg:        #152030;
  --c-surface:   #1C2D3E;
  --c-raised:    #223346;
  --c-border:    #2A3D52;

  --c-accent:       #5090D0;
  --c-accent-dark:  #3070B8;
  --c-accent-light: #7AAEE0;
  --c-highlight:    #BED9F4;

  --c-text-primary:   #E2E8F0;
  --c-text-secondary: #7A98B0;
  --c-text-tertiary:  #4A6070;

  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --section-gap: 96px;
  --content-max: 1100px;
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text-primary);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--c-accent-light); }

p {
  color: var(--c-text-secondary);
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
}

ul, ol { color: var(--c-text-secondary); }
li { font-size: 1rem; line-height: 1.75; }

h1, h2, h3, h4 {
  color: var(--c-text-primary);
  margin: 0 0 1rem;
  line-height: 1.25;
  font-weight: 500;
}

h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--c-text-primary);
}
h1 strong {
  font-weight: 500;
  color: var(--c-highlight);
}

h2 {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

main { display: block; }

section { padding: var(--section-gap) 1.25rem; }

section:nth-child(even) { background: var(--c-surface); }
section:nth-child(odd)  { background: var(--c-bg); }
section + section { border-top: 0.5px solid var(--c-border); }

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

.section-head { margin-bottom: 2.5rem; }

.section-overtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--c-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.section-overtitle::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.lead {
  font-size: 1.05rem;
  color: var(--c-text-secondary);
  max-width: 64ch;
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
  html { font-size: 18px; }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }

  section { padding: 3rem 1.25rem; }

  .btn-primary, .btn-ghost {
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    min-height: 48px;
  }

  .card-title { font-size: 1.05rem; }
  .card-desc  { font-size: 0.95rem; }
}

/* HiDPI / Retina Desktop */
@media (min-resolution: 2dppx) and (min-width: 1280px) {
  html { font-size: 19px; }
}
