/*
 * PTO Theme: Base.
 * Reset, Schriftladen, Grundtypografie, Fokusstile, reduzierte
 * Bewegung. Keine Komponentenklassen hier, die leben in
 * components.css (E5).
 */

/* ---------- Schriften, lokal, keine Google-Server ---------- */

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

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

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

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/lora-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/lora-variable.woff2') format('woff2');
}

/* ---------- Reset ---------- */

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

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

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

/* ---------- Grundtypografie ---------- */

body {
  background: var(--pt-paper);
  color: var(--pt-ink);
  font-family: var(--pt-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
    line-height: 1.72;
  }
}

h1 {
  font-family: var(--pt-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
}

h2 {
  font-family: var(--pt-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.28;
}

h3 {
  font-family: var(--pt-sans);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
}

@media (min-width: 768px) {
  h1 {
    font-size: 40px;
    line-height: 1.18;
  }

  h2 {
    font-size: 28px;
    line-height: 1.25;
  }

  h3 {
    font-size: 21px;
    line-height: 1.35;
  }
}

p {
  max-width: 70ch;
}

a {
  color: var(--pt-blue);
}

a:hover {
  color: var(--pt-blue-dark);
}

/* ---------- Fokusstile ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--pt-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reduzierte Bewegung ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
