/* =========================================================
   LOKALE WEBFONTS
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("../05_Assets/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../05_Assets/fonts/Inter-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../05_Assets/fonts/PlayfairDisplay-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../05_Assets/fonts/PlayfairDisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("../05_Assets/fonts/Caveat.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* =========================================================
   HUNDETRAINER MIT HERZ
   BASE STYLES
   Globale Grundregeln
   ========================================================= */


/* =========================================================
   GRUNDLAGEN
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);

  color: var(--color-text);
  background: var(--color-surface);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   MEDIEN
   ========================================================= */

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

img {
  height: auto;
}


/* =========================================================
   TYPOGRAFIE
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: inherit;
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
}

h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-h3);
}

h4,
h5,
h6 {
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

p {
  max-width: var(--text-width);
  margin-bottom: var(--space-4);
}

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

em {
  font-style: italic;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  color: var(--color-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand-primary);
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* =========================================================
   LISTEN
   ========================================================= */

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: var(--space-2);
}


/* =========================================================
   FORMULARE
   ========================================================= */

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

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

input,
textarea,
select {
  width: 100%;
}

button {
  cursor: pointer;
}


/* =========================================================
   ZITATE
   ========================================================= */

blockquote {
  margin: var(--space-7) 0;
}

blockquote p {
  max-width: none;
}

cite {
  font-style: normal;
}

.quote-accent {
  font-family: var(--font-accent);
}


/* =========================================================
   TEXTAUSWAHL
   ========================================================= */

::selection {
  color: var(--color-text-light);
  background: var(--color-accent);
}


/* =========================================================
   REDUZIERTE BEWEGUNG
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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

}