/* Grundlagen: Schrift, Zurücksetzen, Links, Fokus. */

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sprungziele landen nicht unter dem schwebenden Header */
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  /* Ganz blasses Muster aus den Motiven der Karte */
  background: var(--color-paper) url("../assets/ornaments/muster-hell.svg") center top / 560px auto;
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: var(--line-height);
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p,
ul,
address {
  margin: 0 0 1.2em;
}

address {
  font-style: normal;
}

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

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--color-night);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

/* Punktreihe in Grün und Orange wie auf der Visitenkarte */
.dot-row {
  height: 8px;
  background:
    radial-gradient(circle, var(--color-orange) 3px, transparent 3.5px) 0 0 / 36px 8px repeat-x,
    radial-gradient(circle, var(--color-lime) 3px, transparent 3.5px) 18px 0 / 36px 8px repeat-x;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 900px) {
  body {
    background-size: 760px auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
