:root {
  --paper: #F6F4EF;
  --paper-2: #EEEAE0;
  --ink: #1E2328;
  --muted: #4B545C;
  --line: #D9D4C7;
  --accent: #F2C230;
  --accent-ink: #1E2328;
  --green: #2F5D50;
  --red: #8E2C23;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, #FBFAF7 0%, var(--paper) 60%, var(--paper-2) 100%);
  min-height: 100vh;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

p + p { margin-top: 1rem; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

/* Notfall-Leiste */
.notfall {
  background: var(--red);
  color: #FFFFFF;
  font-size: 0.95rem;
}
.notfall .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 0.65rem; padding-bottom: 0.65rem;
}
.notfall strong { font-weight: 700; }

/* Kopf */
header.top {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
header.top .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: center; gap: 0.75rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand span { box-shadow: inset 0 -0.45em 0 var(--accent); padding: 0 0.1em; }
nav.main a {
  color: var(--ink); text-decoration: none;
  margin-left: 1.25rem; font-size: 0.95rem;
}
nav.main a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 4rem 0 3rem; }
.hero .kicker {
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); font-weight: 600; margin-bottom: 1rem;
}
.hero h1 { max-width: 18ch; }
.hero h1 mark {
  background: var(--accent); color: var(--accent-ink);
  padding: 0 0.12em; border-radius: 2px;
}
.hero .lead {
  margin-top: 1.25rem; max-width: 60ch;
  color: var(--muted); font-size: 1.15rem;
}
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 4px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--ink);
}
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }

/* Prinzip-Box */
.prinzip {
  margin-top: 3rem;
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  background: #FFFFFF;
  border-radius: 0 6px 6px 0;
  max-width: 60ch;
}
.prinzip ol { margin-top: 0.75rem; padding-left: 1.25rem; }
.prinzip li { margin-bottom: 0.4rem; }

section.block { padding: 3.5rem 0; border-top: 1px solid var(--line); }
section.block .intro { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }

/* Themen als Liste, keine Kacheln */
.themen { list-style: none; }
.themen li {
  display: grid; grid-template-columns: 4rem 1fr;
  gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.themen li:first-child { border-top: 1px solid var(--line); }
.themen .nr {
  font-family: Georgia, serif; font-size: 1.6rem; color: var(--green); font-weight: 700;
}
.themen h3 a { color: var(--ink); text-decoration: none; }
.themen h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.themen p { color: var(--muted); max-width: 62ch; }
.themen .regel {
  display: inline-block; margin-top: 0.5rem; font-size: 0.85rem;
  color: var(--green); font-weight: 600;
}

/* Hinweis-Box */
.hinweis {
  background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 6px; padding: 1.25rem 1.5rem; max-width: 70ch;
}
.hinweis strong { color: var(--red); }

/* Über */
.ueber { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 70ch; }
.ueber ul { padding-left: 1.2rem; color: var(--muted); }
.ueber li { margin-bottom: 0.25rem; }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--ink); color: #E7E3D8;
  padding: 2.5rem 0; font-size: 0.95rem;
}
footer.site a { color: #FFFFFF; }
footer.site .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
footer.site h4 { font-family: Georgia, serif; color: #FFFFFF; font-size: 1.05rem; margin-bottom: 0.5rem; }
footer.site .small { margin-top: 1.5rem; font-size: 0.85rem; color: #B9B4A6; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  nav.main a { margin-left: 0.9rem; }
  .themen li { grid-template-columns: 2.5rem 1fr; }
  .prinzip { padding: 1rem 1.1rem; }
}

/* Rechtstexte (Impressum, Datenschutz) */
.legal { padding: 3rem 0 4rem; }
.legal .wrap > * { max-width: 70ch; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.legal ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.legal li { margin-bottom: 0.3rem; }
.todo { background: #FFF3C4; border: 1px dashed var(--red); padding: 0 0.3em; border-radius: 3px; }
.entwurf { background: var(--red); color: #FFFFFF; padding: 0.75rem 1.25rem; font-weight: 600; }
.bald { display: inline-block; margin-left: 0.4rem; font-family: system-ui, sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 0.05rem 0.4rem; vertical-align: middle; }
