@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --porcelain: #f7f8f4;
  --mineral: #dce2d9;
  --pine: #315149;
  --ice: #b9d3f2;
  --night: #26332f;
  --paper: #fdfefb; /* helle Fläche für Formularfelder */
  --mineral-d: #b8c2b7; /* dunklere Linie auf Porcelain */
  --muted-l: #52615b; /* gedämpfter Text auf hell (Kontrast > 6:1) */
  --muted-d: #c0cbc6; /* gedämpfter Text auf dunkel */
  --err: #8f2a2a;

  --bg: var(--porcelain);
  --fg: var(--night);
  --muted: var(--muted-l);
  --line: rgba(29, 37, 35, 0.2);
  --accent: var(--pine);
  --focus: var(--pine);

  --f-display: "Bricolage", "Arial Narrow", Arial, sans-serif;
  --f-body:
    "Instrument", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;

  --gutter: clamp(1.25rem, 4.2vw, 3.75rem);
  --max: 1520px;
  --hh: 4.75rem;
  --r: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
.is-dark {
  --bg: var(--night);
  --fg: var(--porcelain);
  --muted: var(--muted-d);
  --line: rgba(240, 241, 236, 0.2);
  --accent: var(--ice);
  --focus: var(--ice);
}
.is-mineral {
  --bg: var(--mineral);
  --fg: var(--night);
  --muted: #3e4b46;
  --line: rgba(29, 37, 35, 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 1rem);
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--night);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  display: block;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
main {
  display: block;
  outline: none;
}
section[id],
article[id] {
  scroll-margin-top: calc(var(--hh) + 1rem);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 200;
  background: var(--night);
  color: var(--porcelain);
  padding: 0.75rem 1.1rem;
  border-radius: var(--r);
  transition: top 0.2s;
}
.skip:focus {
  top: 1rem;
}

/* Typografie – ein Display-Schnitt (schmal, leicht) und ein ruhiger Textschnitt */
.display,
.h1,
.h2,
.h3,
.hero__title,
.index__name,
.cta__title,
.statement__big {
  font-family: var(--f-display);
  font-stretch: 75%;
  letter-spacing: -0.018em;
}
.display {
  font-size: clamp(2.9rem, 8.2vw, 8rem);
  font-weight: 340;
  line-height: 0.94;
  max-width: 16em;
  text-wrap: balance;
}
.display--art {
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  line-height: 1;
  max-width: 18em;
}
.h1 {
  font-size: clamp(2.1rem, 4.8vw, 4.3rem);
  font-weight: 360;
  line-height: 1;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  font-weight: 430;
  line-height: 1.1;
  font-stretch: 80%;
}
.h3 {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.35;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  max-width: 46rem;
  color: var(--fg);
}
.page-head .lead {
  margin-top: 1.75rem;
}
p {
  max-width: 44rem;
}
small {
  font-size: 0.875rem;
}
.note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 46rem;
  margin-top: 1.5rem;
}
.todo {
  background: repeating-linear-gradient(
    45deg,
    rgba(168, 199, 240, 0.35),
    rgba(168, 199, 240, 0.35) 4px,
    transparent 4px,
    transparent 8px
  );
  border-bottom: 1px dashed currentColor;
  padding: 0 0.2em;
}

/* Listen mit funktionalen Markern */
.tick li,
.dash li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: 0.7rem;
  max-width: 42rem;
}
.tick li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.8rem;
  height: 1.5px;
  background: var(--muted);
}
.tick + .h3,
.dash + .h3 {
  margin-top: 2rem;
}
.h3 + .tick,
.h3 + .dash {
  margin-top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.pt {
  padding-top: 0;
}

/* Prosa (Artikel, Rechtstexte) */
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 450;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 2.8rem 0 0.9rem;
  letter-spacing: -0.01em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-top: 1rem;
  max-width: none;
}
.prose ul {
  margin-top: 1rem;
}
.prose ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-top: 0.55rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.7rem;
  height: 1.5px;
  background: var(--pine);
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@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;
  }
}
