@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #000;
  --grund: #fff;
  --leise: #555;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #fff;
    --grund: #000;
    --leise: #aaa;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

main, footer {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding-top: clamp(4rem, 14vh, 9rem); padding-bottom: 5rem; }

h1 {
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 3rem 0 0.5rem;
}

p { margin: 0 0 1.25rem; }

.einstieg {
  font-size: clamp(1.375rem, 4.2vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible { outline: 0.2rem solid currentColor; outline-offset: 0.2rem; }

address { font-style: normal; margin: 0 0 1.25rem; }

.leise { color: var(--leise); }

footer { padding-bottom: 3rem; color: var(--leise); font-size: 1rem; }
footer a { margin-right: 1.25rem; }
