/* Grundlagen: Reset, Typografie, Browserflächen, Layout */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-0);
  line-height: var(--lh-body);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
address { font-style: normal; }

/* Überschriften */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -.012em;
  text-wrap: balance;
  color: inherit;
}
h1 { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 30rem) { h1, h2 { hyphens: auto; overflow-wrap: break-word; } }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
h4 { font-size: var(--fs-1); }
p, li { text-wrap: pretty; }
p + p { margin-top: var(--s-4); }
.lead { font-size: var(--fs-1); line-height: 1.45; color: var(--text-2); max-width: 46ch; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2, .prose h3 { margin-top: var(--s-7); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--accent); }

/* Lateinische Artnamen */
.latein, i.latein { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* Tabellenziffern für Zeiten, Daten, Preise */
.ziffern, time, .preis { font-variant-numeric: tabular-nums lining-nums; }

/* Etiketten: schmale Versalien wie BURBACHER im Logo */
.etikett {
  font-family: var(--font-label);
  font-weight: 500;
  font-size: var(--fs--2);
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Links */
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--dur-1); }
a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

/* Browserflächen aus der Palette */
::selection { background: var(--c-ocker); color: var(--c-waldboden); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 1px; }
html { scrollbar-color: var(--c-linie) var(--bg); }
input, textarea, select { caret-color: var(--accent); accent-color: var(--c-tanne); }

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--page-max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--c-tanne); color: var(--c-kreide); padding: var(--s-3) var(--s-4); }
.skip-link:focus { top: var(--s-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
