:root {
  --bg: #f4f1ec;
  --ink: #1d1c1a;
  --muted: #6c675f;
  --line: #d9d3c9;
  --accent: #b0823a;
  --glow: rgba(176, 130, 58, 0.35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --ink: #ece7df;
    --muted: #a39d93;
    --line: #34312c;
    --accent: #d6a75c;
    --glow: rgba(214, 167, 92, 0.45);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* Startseite */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px 32px;
}

.mark { width: 168px; height: auto; margin-bottom: 36px; overflow: visible; }
.mark .arc { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.mark .spark { fill: var(--accent); }
.mark .halo { fill: var(--glow); animation: breathe 4.5s ease-in-out infinite; transform-origin: 100px 32px; }

@keyframes breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .mark .halo { animation: none; opacity: 0.7; }
}

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 76px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}
.wordmark .anima { font-style: italic; }

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.divider { width: 48px; height: 1px; background: var(--line); margin: 40px auto; border: 0; }

.note { margin: 0; max-width: 34em; }
.contact { margin: 10px 0 0; font-family: var(--serif); font-size: 21px; }

/* Rechtstexte */
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}
.legal .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.legal .back:hover { color: var(--accent); }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; margin: 24px 0 8px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 36px 0 8px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal .stand { color: var(--muted); font-size: 14px; }

/* Fußzeile */
footer {
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
footer nav { display: inline; }
footer a { color: var(--muted); }
footer .sep { margin: 0 8px; }

.nowrap { white-space: nowrap; }
@media (max-width: 520px) {
  footer nav { display: block; margin-top: 4px; }
  footer .hide-sm { display: none; }
}
