/* ===========================================================
   Flurstückssuche DE — Site Stylesheet
   =========================================================== */

:root {
  --paper: #fafaf8;
  --ink: #1e2a2b;
  --muted: #5b6b66;
  --line: #dbe1db;
  --pine: #1f5c54;
  --pine-soft: #e7efec;
  --pine-soft-strong: #d9e6e1;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --shell: 880px;
  --measure: 700px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--pine);
}
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }

.mono {
  font-family: var(--font-mono);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--pine); }
.wordmark-sub {
  color: var(--pine);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
}
.nav-link:hover {
  color: var(--ink);
}
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--pine);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 1.5rem 3.5rem;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: #1e40af;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-features-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-features {
  list-style: none;
  padding-left: 0;
  max-width: 46ch;
  margin-bottom: 1.6rem;
}
.hero-features li {
  position: relative;
  padding-left: 1.1em;
  color: var(--ink);
}
.hero-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--pine);
  border-radius: 50%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88rem;
  background: var(--pine-soft);
  color: var(--pine);
  padding: 0.45em 0.9em;
  border-radius: 3px;
  text-decoration: none;
  margin-top: 0.5rem;
}
.hero-badge:hover { background: var(--pine-soft-strong); }

.hero-plot {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 420px;
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 760px) {
  .hero-plot { display: none; }
}

/* ---------- Sections ---------- */

.section {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: 1.5rem;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.9rem;
}

.section .shell > *:last-child { margin-bottom: 0; }

.link-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 1.5rem;
}

.site-footer p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--pine); }

/* ---------- FAQ accordion ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--pine);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: var(--measure);
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

.fsk-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.fsk-group {
  background: var(--pine-soft);
  color: var(--pine);
  padding: 0.35em 0.6em;
  border-radius: 3px;
}
.fsk-group .n { color: var(--ink); font-weight: 500; }
.fsk-legend {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Changelog ---------- */

.release {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.release:first-of-type { border-top: none; }

.release-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.release-version {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--ink);
}

.release-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.release ul { margin-bottom: 0; }
