:root {
  color-scheme: light dark;
  --bg: #fbf6ef;
  --surface: #ffffff;
  --text: #3b2f25;
  --muted: #7a6a5c;
  --hazel: #7d6b3c;
  --toffee: #b8742a;
  --line: #eadfce;
  --radius: 18px;
  --content: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1814;
    --surface: #2a231d;
    --text: #f2e8dc;
    --muted: #b9a996;
    --hazel: #c7b37a;
    --toffee: #e2a25c;
    --line: #3d332a;
  }
}

/* Grundlagen */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
}

a { color: var(--toffee); }

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

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

.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: .5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Navigation */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: var(--content);
  margin: 0 auto;
  padding: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.site-nav ul {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav ul a:hover { color: var(--toffee); }

/* Kopfbereich */

.hero {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  margin: .3rem 0 1rem;
}
.hazel { color: var(--hazel); }
.toffee { color: var(--toffee); }
.amp { color: var(--muted); font-weight: 400; }
.lead {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}

main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

/* Steckbriefe */

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 1rem;
}
.cat--hazel { border-top: 6px solid var(--hazel); }
.cat--toffee { border-top: 6px solid var(--toffee); }
.cat-body { padding: 1.25rem 1.5rem 1.5rem; }
.cat h2 { margin: 0 0 .75rem; font-size: 2rem; }
.cat--hazel h2 { color: var(--hazel); }
.cat--toffee h2 { color: var(--toffee); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .3rem 1rem;
  margin: 0 0 1rem;
}
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }

.photo,
.cat img,
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.placeholder {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, var(--line) 0 12px, transparent 12px 24px);
  color: var(--muted);
  font-weight: 700;
}

/* Galerie */

.gallery-section { scroll-margin-top: 1rem; }
.gallery-section h2 {
  font-size: 2rem;
  margin: 4rem 0 1.25rem;
  text-align: center;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery figcaption {
  padding: .6rem .9rem;
  font-size: .95rem;
  color: var(--muted);
}

/* Fußbereich */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.5rem;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a[aria-current="page"] { color: var(--muted); text-decoration: none; }

/* Unterseiten */

.legal {
  max-width: 40rem;
  padding: 3rem 1rem;
}
.legal h2 { font-size: 1.35rem; margin: 2rem 0 .5rem; }

.not-found {
  text-align: center;
  padding: 8rem 1rem;
}
.not-found h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); margin: .3rem 0 1rem; }
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--toffee);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
