/* Gemeinsame Grundlage aller Varianten: Schriften (selbst gehostet), Reset, Formular-Mechanik. */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("/assets/fonts/brygada-1918-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url("/assets/fonts/brygada-1918-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Formular-Mechanik; die Optik legt jede Variante fest. */
.cf-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-field {
  display: flex;
  flex-direction: column;
}
.cf-input {
  font: inherit;
  color: inherit;
  width: 100%;
  min-width: 0;
}
textarea.cf-input {
  resize: vertical;
  min-height: 9rem;
}
.cf-submit {
  font: inherit;
  cursor: pointer;
}
.cf-submit:disabled {
  cursor: progress;
}
.cf-status:focus {
  outline-offset: 4px;
}

.px {
  image-rendering: pixelated;
}

@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;
  }
}

/* Impressum und Datenschutz: gemeinsamer Satzspiegel, Optik aus der jeweiligen Variante */
.legal-head,
.legal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}
.legal-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(4rem, 10vw, 6rem);
}
.legal h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}
.legal-meta {
  margin-top: 0.75rem;
  opacity: 0.8;
}
.legal section {
  margin-top: 2.5rem;
}
.legal h2 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.legal p + p {
  margin-top: 0.9em;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.legal li + li {
  margin-top: 0.4em;
}
.legal a,
.legal-head a,
.legal-foot a {
  color: inherit;
}
.legal-head__name {
  text-decoration: none;
  font-weight: 600;
}
