@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plusjakartasans.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fff3e2;
  --surface: #fffaf2;
  --text: #2a1608;
  --muted: #6b5442;
  --line: #ead7bd;
  --accent: #f4a211;
  --link: #8a4a00;
  --on-accent: #2a1608;
  --todo-bg: #fff176;
  --todo-text: #2a1608;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1007;
    --surface: #24170c;
    --text: #fff3e2;
    --muted: #cdb79c;
    --line: #3d2a19;
    --link: #ffbe5a;
    --on-accent: #1b1007;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

main { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

/* Kopf */
.site-header {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}
.brand .hat { width: 2rem; height: 2rem; fill: var(--accent); flex: none; }
.header-link { font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-link:hover { text-decoration: underline; }

/* Startseite */
.hero { padding: 3.5rem 0 3rem; max-width: 46rem; }
.hero.small { padding-top: 4rem; }
.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::after {
  content: "";
  width: 3.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); }
.lead { font-size: 1.2rem; line-height: 1.55; margin: 1.25rem 0 0; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.button {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { filter: brightness(1.06); text-decoration: none; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--accent); filter: none; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0 0 3.5rem;
}
.feature {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.feature h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--muted); }

.contact { max-width: 46rem; margin: 0 0 4rem; }
.contact h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact p { margin: 0; }

/* Rechtstexte */
.legal { max-width: 43rem; padding: 2.5rem 0 4rem; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
.legal .lead { color: var(--muted); font-size: 1.125rem; margin-top: 0.9rem; }
.legal h2 { font-size: 1.4rem; margin: 2.4rem 0 0.6rem; }
.legal h3 { font-size: 1.1rem; margin: 0 0 0.35rem; }
.legal p { margin: 0 0 0.9rem; overflow-wrap: anywhere; }
.legal ul { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.legal li { margin: 0.15rem 0; }
.legal .summary, .legal .notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.legal .notice { margin: 1.2rem 0 1rem; }
.legal .notice p:last-child { margin-bottom: 0; }
.more, .stand { color: var(--muted); }
.more { margin-top: 2.2rem !important; }
.stand { margin-top: 2.5rem !important; font-size: 0.95rem; }

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.3em;
  border-radius: 3px;
  outline: 1px dashed #b38f00;
  font-weight: 600;
}

/* Fuß */
.site-footer {
  width: calc(100% - 2rem);
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a { color: var(--text); font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 2.25rem 0 2.25rem; }
  .lead { font-size: 1.1rem; }
  .brand { font-size: 1.1rem; }
  .brand .hat { width: 1.75rem; height: 1.75rem; }
}
