/* Ahnenfaden style kit v0.1 (11.10.2026)
   Fonts are self-hosted in assets/fonts (since 12.10.2026; SIL Open Font License, see the OFL files there).
   Never load them from Google again: German courts treat Google-hosted fonts as a GDPR problem (LG München 2022).
   Subsets latin and latin-ext, taken from Google Fonts: Fraunces v38, Source Sans 3 v20. */

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/sourcesans3-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/sourcesans3-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f7f2e8;
  --paper-deep: #efe6d5;
  --card: #fffcf6;
  --ink: #221d17;
  --ink-2: #4d443a;
  --ink-3: #6f6458;
  --line: #e2d8c6;
  --line-strong: #cbbda5;
  --thread: #b42a1f;
  --thread-dark: #8e1f16;
  --thread-tint: #f5e1dc;
  --on-thread: #fffaf3;
  --found: #3e6a4b;
  --found-tint: #e2ede0;
  --search: #8a5a0e;
  --search-tint: #f5e8cf;
  --band: #2a231c;
  --on-band: #f3ebdd;
  --on-band-2: #cdbfa8;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(34, 29, 23, .05), 0 10px 30px rgba(34, 29, 23, .07);
  --maxw: 1160px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17130f;
    --paper-deep: #1f1a15;
    --card: #241e18;
    --ink: #efe7da;
    --ink-2: #d2c6b4;
    --ink-3: #ab9e8b;
    --line: #3a3128;
    --line-strong: #54483b;
    --thread: #e0594b;
    --thread-dark: #f07a6d;
    --thread-tint: #3b201b;
    --on-thread: #1a0f0c;
    --found: #8fc19b;
    --found-tint: #1f2e22;
    --search: #e3b25e;
    --search-tint: #33280f;
    --band: #0f0c09;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --paper: #17130f; --paper-deep: #1f1a15; --card: #241e18; --ink: #efe7da; --ink-2: #d2c6b4;
  --ink-3: #ab9e8b; --line: #3a3128; --line-strong: #54483b; --thread: #e0594b; --thread-dark: #f07a6d;
  --thread-tint: #3b201b; --on-thread: #1a0f0c; --found: #8fc19b; --found-tint: #1f2e22;
  --search: #e3b25e; --search-tint: #33280f; --band: #0f0c09;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
img { max-width: 100%; display: block; }
[hidden], svg[hidden] { display: none !important; }
a { color: var(--thread-dark); text-underline-offset: .18em; }
a:hover { color: var(--thread); }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 450; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 2.1vw, 1.4rem); color: var(--ink-2); line-height: 1.55; max-width: 38em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--thread); margin-bottom: 1rem; }
.serif { font-family: var(--font-display); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--deep { background: var(--paper-deep); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.4em; border-radius: 999px;
  font: 600 1.02rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--thread); border-color: var(--thread); color: var(--on-thread); }
.btn--primary:hover { background: var(--thread-dark); border-color: var(--thread-dark); color: var(--on-thread); }
.btn--small { min-height: 42px; padding: .5em 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 26px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.nav { display: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: var(--thread); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.header-cta { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 0 20px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; width: 100%; }
@media (min-width: 980px) {
  .nav { display: flex; gap: 28px; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* Hero */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__note { margin-top: 1rem; font-size: .95rem; color: var(--ink-3); max-width: 30em; }

/* Record card: a record image with a marked entry and its transcription */
.record-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.record-card__image { position: relative; background: #e9e0cd; overflow: hidden; }
.record-card__image img { width: 100%; height: auto; }
.record-card__mark { position: absolute; border: 2.5px solid var(--thread); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(30, 20, 10, .16); pointer-events: none; }
.record-card__body { padding: 18px 20px 20px; }
.record-card__label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.record-card__quote { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
.record-card__source { font-size: .88rem; color: var(--ink-3); margin: 0; }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-2); white-space: nowrap; }
.chip--found { background: var(--found-tint); color: var(--found); }
.chip--search { background: var(--search-tint); color: var(--search); }
.chip--thread { background: var(--thread-tint); color: var(--thread-dark); }
.chip--open { background: transparent; color: var(--ink-3); border: 1px dashed var(--line-strong); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; color: var(--thread); margin-bottom: 8px; }
.stat__label { font-size: .98rem; color: var(--ink-2); line-height: 1.4; }
.stats-note { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }

/* Steps */
.steps { display: grid; gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--thread); }
.step__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--thread); margin-bottom: 8px; display: block; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-2); margin: 0; }

/* Deliverables */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--flip > :first-child { order: 2; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
.feature-list svg { width: 22px; height: 22px; margin-top: 4px; color: var(--thread); }
.feature-list strong { display: block; font-weight: 600; margin-bottom: 2px; }
.feature-list span { color: var(--ink-2); }

/* The thread: generations with knots */
.thread-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); }
.thread-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; margin-bottom: 18px; }
.thread-panel__title { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.progress { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; color: var(--ink-2); }
.progress b { font-weight: 600; color: var(--ink); }
.progress-bar { height: 6px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; margin: 4px 0 20px; }
.progress-bar span { display: block; height: 100%; background: var(--thread); border-radius: inherit; }
.thread { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.thread::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--thread); }
.thread__item { position: relative; margin-bottom: 10px; }
.thread__item:last-child { margin-bottom: 0; }
.thread__knot { position: absolute; left: -29px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--thread); border: 2px solid var(--thread); }
.thread__item--given .thread__knot { background: var(--card); }
.thread__item--search .thread__knot { background: var(--card); box-shadow: 0 0 0 4px var(--thread-tint); }
.thread__item--open .thread__knot { background: var(--card); border-style: dashed; }
.thread__item--self .thread__knot { width: 16px; height: 16px; margin-top: -8px; left: -30px; }
.person { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.person__name { font-weight: 600; margin: 0; line-height: 1.3; }
.person__meta { font-size: .95rem; color: var(--ink-3); margin: 0; line-height: 1.4; }
.thread__item--search .person { background: var(--search-tint); border-color: transparent; color: var(--search); }
.thread__item--open .person { background: transparent; border-style: dashed; color: var(--ink-3); }
.thread__item--self .person { background: transparent; border: 0; padding: 4px 14px; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .js .thread[data-animate] .thread__item { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
  .js .thread[data-animate].is-visible .thread__item { opacity: 1; transform: none; }
}

/* Packages */
.packages { display: grid; gap: 20px; }
@media (min-width: 980px) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.package { position: relative; display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 24px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.package:hover { border-color: var(--line-strong); }
.package[aria-pressed="true"] { border-color: var(--thread); box-shadow: 0 0 0 3px var(--thread-tint); }
.package__badge { position: absolute; top: -13px; left: 22px; }
.package__name { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 4px; }
.package__tagline { color: var(--ink-2); margin: 0 0 18px; }
.package__price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin: 0 0 4px; }
.package__price-note { font-size: .88rem; color: var(--ink-3); margin: 0 0 18px; }
.package ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.package li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 1rem; color: var(--ink-2); }
.package li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--thread); }
.package__examples { font-size: .95rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.package-visual { margin-top: 28px; display: grid; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
@media (min-width: 860px) { .package-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.package-visual svg { width: 100%; height: auto; max-height: 280px; }
.package-visual__text h3 { margin-bottom: .3em; }
.package-visual__text p { color: var(--ink-2); }
.gift-note { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; color: var(--ink-2); font-size: 1rem; }

/* Dark band (1933 to 1945) */
.band { background: var(--band); color: var(--on-band); }
.band h2, .band h3 { color: var(--on-band); }
.band .lead, .band p { color: var(--on-band-2); }
.band .eyebrow { color: #f08b7f; }
.band .btn { border-color: var(--on-band); color: var(--on-band); }
.band .btn:hover { background: var(--on-band); color: var(--band); }
.band .btn--primary { background: #c8382c; border-color: #c8382c; color: #fffaf3; }
.band .btn--primary:hover { background: #a92c22; border-color: #a92c22; color: #fffaf3; }
.source-grid { display: grid; gap: 14px; margin: 28px 0 32px; }
@media (min-width: 760px) { .source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.source-item { border: 1px solid rgba(243, 235, 221, .16); border-radius: var(--radius); padding: 16px 18px; }
.source-item strong { display: block; color: var(--on-band); font-weight: 600; margin-bottom: 4px; }
.source-item span { color: var(--on-band-2); font-size: 1rem; }
.principle-quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; color: var(--on-band); border-left: 3px solid #c8382c; padding-left: 20px; margin: 0 0 28px; }

/* Regions */
.region-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.region-chips .chip { font-size: .95rem; padding: 9px 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.countries { color: var(--ink-3); font-size: 1rem; }

/* Principles */
.principles { display: grid; gap: 20px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--ink-2); margin: 0; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Founder */
.founder { display: grid; gap: 24px; align-items: start; max-width: 860px; }
@media (min-width: 760px) { .founder { grid-template-columns: 120px minmax(0, 1fr); } }
.founder__avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--paper-deep); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.2rem; color: var(--thread); }
.founder blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.5; }
.founder cite { display: block; margin-top: 14px; font-style: normal; color: var(--ink-3); font-size: 1rem; }

/* Tool teaser */
.teaser { display: grid; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); }
@media (min-width: 860px) { .teaser { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.teaser h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.teaser p { color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid--3 { grid-template-columns: 2fr 1fr 2fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .fieldset legend { font-weight: 600; font-size: 1rem; }
.field__hint { font-size: .92rem; color: var(--ink-3); margin: 0; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: 12px 14px; min-height: 52px;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--thread); box-shadow: 0 0 0 3px var(--thread-tint); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { margin-bottom: 10px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); font-size: 1rem; cursor: pointer; }
.option input:checked + span { border-color: var(--thread); background: var(--thread-tint); color: var(--thread-dark); }
.option input:focus-visible + span { outline: 3px solid var(--thread); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 1rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--thread); }
.field-error { color: var(--thread-dark); font-size: .95rem; font-weight: 600; margin: 0; }
.form-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); }
.form-success { text-align: center; padding: 24px 0; }
.form-success[hidden] { display: none; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.35rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-text); font-size: 1.6rem; color: var(--thread); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }

/* CTA band and footer */
.cta-band { text-align: center; }
.cta-band h2 { margin-left: auto; margin-right: auto; max-width: 18em; }
.cta-band .lead { margin: 0 auto 1.6em; }
.cta-band .btn-row { justify-content: center; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: .95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--thread); }

/* Style guide helpers */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.swatch__color { height: 72px; }
.swatch__label { padding: 10px 12px; font-size: .9rem; line-height: 1.35; }
.swatch__label code { color: var(--ink-3); font-size: .82rem; }
.sg-block { padding: 40px 0; border-top: 1px solid var(--line); }
.sg-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sg-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .sg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Package illustrations (inline SVG) */
.pv-line { stroke: var(--thread); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.pv-line--open { stroke-dasharray: 4 5; }
.pv-line--thin { stroke: var(--line-strong); stroke-width: 1.5; }
.pv-knot { fill: var(--thread); }
.pv-knot--given { fill: var(--card); stroke: var(--thread); stroke-width: 2.5; }
.pv-knot--search { fill: var(--card); stroke: var(--thread); stroke-width: 2.5; }
.pv-halo { fill: var(--thread-tint); }
.pv-knot--open { fill: var(--card); stroke: var(--thread); stroke-width: 2; stroke-dasharray: 3 3; }
.pv-doc { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.5; }
.pv-doc-line { stroke: var(--line-strong); stroke-width: 1.5; }
.pv-label { fill: var(--ink-3); font: 500 13px var(--font-text); }
.pv-label--strong { fill: var(--ink); font-weight: 600; }

/* Herkunfts-Check: four short steps */
.check-layout { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) {
  .check-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .check-intro { position: sticky; top: 110px; }
}
.check-benefits { margin-top: 28px; }
.wizard { display: grid; gap: 22px; }
.wizard__step { display: grid; gap: 22px; }
.js .wizard__step:not(.is-active) { display: none; }
.wizard__progress, .wizard__count { display: none; }
.js .wizard__progress { display: flex; position: relative; justify-content: space-between; }
.js .wizard__count { display: block; }
.wizard__progress::before, .wizard__progress-fill { content: ""; position: absolute; left: 12.5%; top: 9px; height: 2px; }
.wizard__progress::before { right: 12.5%; background: var(--line-strong); }
.wizard__progress-fill { width: 0; background: var(--thread); transition: width .3s ease; z-index: 1; }
.wizard__knot { position: relative; z-index: 2; flex: 1; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; font: 500 .9rem var(--font-text); color: var(--ink-3); cursor: default; }
.wizard__knot.is-done { cursor: pointer; color: var(--ink-2); }
.wizard__knot.is-current { color: var(--ink); font-weight: 600; }
.wizard__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px dashed var(--thread); }
.wizard__knot.is-done .wizard__dot { background: var(--thread); border-style: solid; }
.wizard__knot.is-current .wizard__dot { border-style: solid; box-shadow: 0 0 0 5px var(--thread-tint); }
.wizard__count { margin: -6px 0 0; font-size: .92rem; color: var(--ink-3); text-align: center; }
.wizard__title { font-size: clamp(1.45rem, 3vw, 1.8rem); margin: 0; }
.wizard__title:focus { outline: none; }
.wizard__title:focus-visible { outline: 2px solid var(--thread-tint); outline-offset: 6px; border-radius: 4px; }
.wizard__hint { margin: -12px 0 0; color: var(--ink-2); }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.wizard__nav .btn { margin-left: auto; min-width: 170px; }
.field--short { max-width: 220px; }
.field-label { font-weight: 600; font-size: 1rem; margin: 0 0 10px; }
.optional { font-weight: 400; color: var(--ink-3); font-size: .9rem; margin-left: 6px; }
.options--stack { display: grid; gap: 10px; }
.options--stack .option span, .option--wide span { width: 100%; min-height: 54px; border-radius: var(--radius); padding: 12px 16px 12px 46px; position: relative; }
.options--stack .option span::before, .option--wide span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 4px; border: 1.5px solid var(--line-strong); background: var(--card); }
.options--stack .option input:checked + span::before, .option--wide input:checked + span::before { background: var(--thread); border-color: var(--thread); box-shadow: inset 0 0 0 3px var(--card); }
.option--wide { display: block; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.quick { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; color: var(--ink-2); font: 500 .95rem var(--font-text); cursor: pointer; }
.quick:hover { border-color: var(--thread); color: var(--thread-dark); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.summary__label { margin: 0; font-size: .88rem; color: var(--ink-3); }
.summary__text { margin: 2px 0 0; font-weight: 600; line-height: 1.4; }
.btn-text { background: none; border: 0; padding: 12px 4px; font: 600 1rem var(--font-text); color: var(--ink-2); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.btn-text:hover { color: var(--thread); }
.privacy-note { margin: 0; font-size: .95rem; color: var(--ink-3); }
@media (max-width: 520px) { .wizard__nav .btn { min-width: 0; flex: 1; } }
@media (max-width: 979px) {
  .check-benefits { margin-top: 18px; gap: 8px; }
  .check-benefits span { display: none; }
  .check-benefits strong { margin: 0; font-weight: 500; }
}

/* Legal pages (Impressum, Datenschutz, AGB) */
.legal-home { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 1rem; }
.legal-home:hover { color: var(--thread); }
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.legal__body { max-width: 44rem; overflow-wrap: break-word; hyphens: auto; }
.legal h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin-bottom: .4em; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2em 0 .5em; }
.legal h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 1.5em 0 .4em; }
.legal p, .legal li, .legal address { color: var(--ink-2); }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal__meta { color: var(--ink-3); font-size: .95rem; }
.legal-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin: 1.2em 0; }
.legal-box p:last-child { margin-bottom: 0; }
.price-note { margin: 14px 0 0; font-size: .95rem; color: var(--ink-3); }

/* Herkunfts-Check: honeypot (hidden from people) and sending error */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--thread-tint); color: var(--thread-dark); font-weight: 600; font-size: .98rem; }

/* Record cards open the Beleg-Ansicht */
.record-card__open { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.record-card__open span { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 11px; border-radius: 999px; background: rgba(34, 29, 23, .84); color: #fffaf3; font: 600 .88rem/1 var(--font-text); transition: background .15s ease; }
.record-card__open:hover span, .record-card__open:focus-visible span { background: var(--thread); }
.record-card__open:focus-visible { outline: 3px solid var(--thread); outline-offset: -3px; }

/* Beleg-Ansicht: full page with the entry framed, transcription beside it */
html.has-viewer { overflow: hidden; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr; }
.viewer:not([open]) { display: none; }
.viewer::backdrop { background: rgba(10, 8, 6, .6); }
.viewer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.viewer__meta { margin: 0 0 2px; font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--thread); }
.viewer__title { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.viewer__close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.viewer__close:hover { border-color: var(--thread); color: var(--thread); }
.viewer__body { display: grid; grid-template-rows: 56dvh 1fr; min-height: 0; }
.viewer__stage { position: relative; overflow: hidden; background: #110e0b; touch-action: none; cursor: grab; user-select: none; }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__page { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; }
.viewer__page.is-gliding { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.viewer__img { display: block; width: 100%; height: 100%; pointer-events: none; }
.viewer__stage.is-loading .viewer__page { visibility: hidden; }
.viewer__loading { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; margin: 0; color: #cdbfa8; }
.viewer__stage.is-loading .viewer__loading { display: flex; }
.viewer__marks { position: absolute; inset: 0; pointer-events: none; }
.viewer__mark { position: absolute; border: calc(2.5px / var(--s, 1)) solid #e0594b; border-radius: calc(4px / var(--s, 1)); box-shadow: 0 0 0 99999px rgba(12, 9, 7, .42); }
.viewer__tag { position: absolute; left: calc(-2.5px / var(--s, 1)); bottom: 100%; transform-origin: 0 100%; transform: scale(calc(1 / var(--s, 1))); white-space: nowrap; padding: 4px 9px; border-radius: 5px 5px 0 0; background: #e0594b; color: #1a0f0c; font: 600 13px/1.3 var(--font-text); }
.viewer__tools { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20, 16, 12, .86); }
.viewer__tools button { min-width: 40px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #f3ebdd; font: 600 .92rem var(--font-text); cursor: pointer; white-space: nowrap; }
.viewer__tools button:hover { background: rgba(243, 235, 221, .14); }
.viewer__panel { overflow-y: auto; padding: 20px var(--gutter) 28px; background: var(--card); border-top: 1px solid var(--line); }
.viewer__panel .eyebrow { margin-bottom: .6rem; }
.viewer__panel h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.viewer__panel p { color: var(--ink-2); font-size: 1rem; }
.viewer__quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem !important; line-height: 1.55; color: var(--ink) !important; border-left: 3px solid var(--thread); padding-left: 14px; margin: 0 0 12px; }
.viewer__hint { font-size: .88rem !important; color: var(--ink-3) !important; }
.viewer__status { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: .95rem !important; }
.viewer__source { font-size: .9rem !important; color: var(--ink-3) !important; margin-bottom: 8px; }
.viewer__link { font-weight: 600; }
@media (min-width: 980px) {
  .viewer__body { grid-template-rows: none; grid-template-columns: 1fr 400px; }
  .viewer__panel { border-top: 0; border-left: 1px solid var(--line); padding: 28px 28px 36px; }
}

/* Link to the example deck */
.example-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.example-cta p { margin: 0; color: var(--ink-3); font-size: .98rem; max-width: 26em; }

/* Herkunfts-Check: scope cards in step 1, branches, the four grandparents */
.options--cards { display: grid; gap: 10px; }
.option--card { display: block; }
.option--card span { display: block; width: 100%; min-height: 0; padding: 14px 16px 14px 48px; border-radius: var(--radius); position: relative; line-height: 1.35; }
.option--card span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--card); }
.option--card input:checked + span::before { background: var(--thread); border-color: var(--thread); box-shadow: inset 0 0 0 3px var(--card); }
.option--card strong { display: block; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.option--card small { display: block; margin-top: 3px; font-size: .92rem; color: var(--ink-3); }
.option--card input:checked + span small { color: var(--ink-2); }
.branch { display: grid; gap: 14px; }
.branch[hidden], .wizard__note[hidden] { display: none; }
.wizard__note { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: .98rem; }
.field--mid { max-width: 360px; }
.gp-grid { display: grid; gap: 14px; }
.gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.gp-row__label { grid-column: 1 / -1; margin: 0; font-weight: 600; font-size: 1rem; }
@media (max-width: 520px) { .gp-row { grid-template-columns: 1fr; } }
