/* Häkchen — Leinenfarben aus Haekchen/Design/Theme.swift */
:root {
  --sheet:     #FBFAF7;
  --desk:      #F1EFE9;
  --card:      #FFFFFF;
  --ink:       #1F2320;
  --ink-soft:  #6B7069;
  --ink-faint: #A3A79F;
  --accent:    #3E7D5A;   /* nur was erledigt ist */
  --stamp:     #A8452F;
  --rule:      #E3E0D8;
  --hairline:  #E3E0D8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sheet:     #1A1C1A;
    --desk:      #111311;
    --card:      #232622;
    --ink:       #ECEFE9;
    --ink-soft:  #9DA39A;
    --ink-faint: #6A6F68;
    --accent:    #6FBF8F;
    --stamp:     #D8705A;
    --rule:      #343831;
    --hairline:  #343831;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sheet) 0%, var(--desk) 100%) fixed;
  font: 400 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.003em;
}

.wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopf ---------- */

header.site {
  padding: 48px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; }

.lang a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--card);
}
.lang a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Fließtext ---------- */

h1 {
  font-size: clamp(33px, 6.4vw, 45px);
  line-height: 1.13;
  letter-spacing: -0.022em;
  font-weight: 640;
  margin: 40px 0 20px;
  text-wrap: balance;
}

/* Auf der Startseite trägt die Eyebrow den Abstand nach oben. */
.eyebrow + h1 { margin-top: 14px; }

h2 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 620;
  margin: 64px 0 16px;
}

h3 {
  font-size: 19px;
  letter-spacing: -0.008em;
  font-weight: 620;
  margin: 0 0 6px;
}

p { margin: 0 0 18px; }

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

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

strong { font-weight: 620; }

/* Getrackte Mikro-Beschriftung. */
.eyebrow {
  display: block;
  margin: 40px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Bausteine ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--sheet);
  font-size: 16px;
  font-weight: 620;
  text-decoration: none;
}

.badge-note {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-faint);
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px 24px;
}

.features { display: grid; gap: 14px; margin: 28px 0 0; }
.features p { margin: 0; color: var(--ink-soft); font-size: 17px; }

/* Derselbe Haken wie in der App, als Aufzählungszeichen. */
.features h3 { display: flex; align-items: baseline; gap: 11px; }
.features h3::before {
  content: "";
  flex: none;
  width: 13px;
  height: 8px;
  border: solid var(--accent);
  border-width: 0 0 2.4px 2.4px;
  transform: rotate(-45deg) translate(1px, -2px);
}

/* ---------- Ablauf ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 15px;
  font-weight: 620;
  display: grid;
  place-items: center;
}
.steps b { color: var(--ink); font-weight: 620; }

.audience { color: var(--ink-soft); }

/* ---------- Aufzählungen mit Haarlinien ---------- */

.rule-list { list-style: none; padding: 0; margin: 22px 0 0; }
.rule-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.rule-list li:last-child { border-bottom: 1px solid var(--hairline); }
.rule-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.rule-list.muted li::before { background: var(--ink-faint); }

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

.shot {
  margin: 36px 0 8px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 22px 48px -34px rgb(0 0 0 / 0.55);
}
.shot svg { display: block; width: 100%; height: auto; }

/* Auf schmalen Displays wäre die Skizze in voller Breite unlesbar klein. Die
   SVG-Viewport wird deshalb quadratisch und `slice` schneidet links ab: übrig
   bleibt die geöffnete Liste in voller Größe. */
@media (max-width: 560px) {
  .shot svg { aspect-ratio: 1 / 1; height: auto; }
}

/* ---------- Datenschutz- und Impressumsseiten ---------- */

.doc h2 { font-size: 22px; margin: 44px 0 12px; }
.doc h2:first-of-type { margin-top: 40px; }
.doc ul { color: var(--ink-soft); padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc .updated { color: var(--ink-faint); font-size: 16px; margin-top: -8px; }
.doc address { font-style: normal; color: var(--ink-soft); }
.todo {
  background: var(--card);
  border: 1px dashed var(--hairline);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--stamp);
  font-size: 0.95em;
}

/* ---------- Fuß ---------- */

footer.site {
  margin-top: 72px;
  padding: 28px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-faint);
  font-size: 16px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  h2 { font-size: 23px; margin-top: 52px; }
}
