@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --paper: #f3ecdf;
  --ink: #1a1714;
  --soft: #3f3832;
  --forest: #173f31;
  --forest-deep: #102b22;
  --wash: #e5f0e8;
  --line: #e0d3c2;
  --card: #fffcf7;
  --clay: #8d3f2c;
  --shadow: 0 18px 50px rgba(48, 32, 16, 0.07);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: Fraunces, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 110% -10%, #efe0cc 0%, transparent 55%),
    radial-gradient(680px 380px at -15% 8%, #e3efe6 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}
img, svg { max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--forest);
  color: #f6f1e7;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.ribbon {
  background: var(--forest-deep);
  color: #f6f1e7;
  text-align: center;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.demo-pill {
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-box { position: relative; }
.nav-box > summary {
  list-style: none;
  cursor: pointer;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
}
.nav-box > summary::-webkit-details-marker { display: none; }
.nav-box > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-box[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.nav-box > summary:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 20;
  display: grid;
  gap: 2px;
}
.nav-panel a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
}
.nav-panel a:hover,
.nav-panel a[aria-current="page"] { background: var(--wash); }
.nav-panel .nav-sub {
  margin: 8px 12px 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--soft);
}

.hero {
  display: grid;
  gap: 28px;
  padding: 28px 0 12px;
}
.kicker {
  margin: 0 0 10px;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.98rem;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12em;
  text-wrap: balance;
}
h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--clay);
}
h1.page {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16em;
}
.lead {
  margin: 18px 0 0;
  max-width: 36rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: default;
}
.btn-primary {
  background: var(--forest);
  color: #f7f3ea;
  border: 2px solid var(--forest);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.quiet {
  margin: 12px 0 0;
  color: var(--soft);
  font-size: 0.98rem;
}

.facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.facts li {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--forest);
  font-weight: 650;
  letter-spacing: -0.011em;
  line-height: 1.35;
}

.art { display: none; margin: 0; }
.art svg { display: block; width: min(100%, 460px); height: auto; margin-inline: auto; }

section { padding: 28px 0; }
h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 640;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}
.intro {
  margin: 0 0 20px;
  max-width: 40rem;
  color: var(--soft);
}

.areas, .cards { display: grid; gap: 14px; }
.area, .card, .sheet, .help-copy, .lock, .notice {
  background: var(--card);
  border: 1px solid rgba(26, 23, 20, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.area { padding: 22px 20px 20px; color: inherit; text-decoration: none; display: block; }
a.area:hover { box-shadow: 0 18px 50px rgba(48, 32, 16, 0.12); }
a.area:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}
.area .mark, .lock .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--wash);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.area p, .card p, .help-copy p, .notice p, .prose p { margin: 8px 0 0; }
.area-meta {
  margin-top: 12px;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.95rem;
}
.caution {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}

.card { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-top, .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--forest-deep);
  font-size: 0.92rem;
  font-weight: 700;
}
.tag.example {
  background: transparent;
  border: 1.5px solid var(--clay);
  color: var(--clay);
}
.tag.lock {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.card h3 { font-size: 1.35rem; line-height: 1.2; }
.meta { color: var(--soft); margin-top: auto; }

.split { display: grid; gap: 14px; }
.help-copy, .sheet, .notice { padding: 22px 20px 20px; }
.help-copy p:last-child, .notice p:last-child { margin-bottom: 0; }

.lock {
  padding: 40px 28px 32px;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}
.lock .mark { margin: 0 auto 16px; width: 58px; height: 58px; border-radius: 18px; }
.lock .actions { justify-content: center; }
.lock .lead { margin-left: auto; margin-right: auto; font-size: 1.2rem; }

.notice.warn { border-left: 4px solid var(--clay); }

.official { display: grid; gap: 14px; }
.official a { display: block; text-decoration: none; color: inherit; }

.prose { max-width: 42rem; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 1.2em; }
.prose li { margin: 8px 0 0; }
.prose h2 { margin-top: 28px; }

footer.site {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}
.foot-grid { display: grid; gap: 22px; }
.foot-brand {
  font-family: var(--serif);
  font-weight: 640;
  font-size: 1.2rem;
}
footer.site p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.98rem;
  max-width: 40rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.foot-links a {
  font-weight: 700;
  text-decoration: none;
  color: var(--forest-deep);
}
.foot-links a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  .actions { flex-direction: row; align-items: center; }
  .btn { min-width: 210px; }
  .areas, .cards, .official { grid-template-columns: repeat(2, 1fr); }
  .areas.thirds, .cards.thirds { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr 1.3fr; gap: 22px; align-items: start; }
  section { padding: 42px 0; }
  .hero { padding-top: 42px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .hero.home {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "copy art"
      "facts art";
    column-gap: 48px;
    align-items: center;
    padding-bottom: 20px;
  }
  .hero-copy { grid-area: copy; }
  .home > .facts { grid-area: facts; margin-top: 26px; }
  .art { grid-area: art; display: block; }
  .split { grid-template-columns: 0.85fr 1.15fr; gap: 22px; align-items: start; }
  .wrap { width: min(1080px, calc(100% - 64px)); }
  .areas.thirds, .cards.thirds, .areas { grid-template-columns: repeat(3, 1fr); }
}

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

.area .tag { margin-top: 8px; }

.besucher-zaehler {
  margin-top: 14px !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft);
}
.besucher-zaehler[hidden] { display: none; }
