/* ============================================================
   Lebensgrund — legal.css (Impressum / Datenschutz / Barrierefreiheit)
   Tokens synchron zu css/tokens.css (Marke: Creme/Olive, Radius 0, flach).
   Dark Mode via prefers-color-scheme — ohne Cookies, ohne JS.
   ============================================================ */

:root {
  --bg: #f4f1e4;
  --surface: #faf7e9;
  --text: #34431e;
  --text-body: #5f6347;
  --text-faint: #6c6c50;
  --accent: #a05a12;
  --border: rgba(74, 86, 40, 0.18);
  --line: rgba(74, 86, 40, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #20261a;
    --surface: #2a3122;
    --text: #eae7d9;
    --text-body: #c9c8b4;
    --text-faint: #a3a28c;
    --accent: #dda15e;
    --border: rgba(234, 231, 217, 0.16);
    --line: rgba(234, 231, 217, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "Jost", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ---- Sticky Zurück-Navigation ---- */
.back-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 22px;
}

.back-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--accent);
}

/* ---- Inhalt ---- */
main.container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 22px 70px;
  flex: 1;
}

h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.25;
}

.stand {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 32px;
}

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 28px;
  margin-bottom: 18px;
}

.legal-block h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.4;
}

.legal-block p {
  margin: 0 0 12px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(160, 90, 18, 0.35);
  text-underline-offset: 2px;
}

.legal-block a:hover {
  text-decoration-color: currentColor;
}

address {
  font-style: normal;
  line-height: 1.8;
  color: var(--text);
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
}

.legal-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.placeholder {
  color: var(--accent);
  background: rgba(160, 90, 18, 0.09);
  padding: 1px 6px;
}

strong {
  font-weight: 500;
  color: var(--text);
}

/* ---- Footer (vereinfachte Marken-Variante) ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 22px 40px;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-inner a {
  color: var(--text-faint);
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a[aria-current="page"] {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-faint);
  font-size: 13px;
}

@media (max-width: 560px) {
  .legal-block {
    padding: 20px 18px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
