/* Matvex brand stylesheet — shared by trust.html + datenschutz.html.
   Tokens, typography and components per brand/README.md (Charcoal / Cream /
   Signal Gold). Light is default; dark is mandatory and toggled via
   [data-theme="dark"] on <html>. Fonts are self-hosted (see fonts.css). */

/* --- Tokens --------------------------------------------------- */
:root {
  --bg:        #F1E9D8;   /* Warm Cream */
  --surface:   #FBF6EC;   /* helleres Papier (Cards/Tables) */
  --surface-2: #F4ECDB;
  --fg:        #1B1813;   /* Deep Charcoal */
  --fg-soft:   #3A352C;
  --muted:     #6B6358;
  --primary:   #9C7C3E;   /* Deep Gold = Links/Akzent auf hellem Grund */
  --border:    #DCD2BE;
  --border-strong: #C9BD9E;

  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", ui-serif, Georgia, serif;
}
:root[data-theme="dark"] {
  --bg:        #1B1813;   /* Deep Charcoal */
  --surface:   #242019;
  --surface-2: #2B2620;
  --fg:        #F1E9D8;   /* Warm Cream */
  --fg-soft:   #D8CFBC;
  --muted:     #A89F8E;
  --primary:   #C6A461;   /* Signal Gold = Links/Akzent auf dunklem Grund */
  --border:    #38322A;
  --border-strong: #4A4137;
}

/* --- Reset / base --------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
sup { font-size: 0.7em; }

/* --- Layout --------------------------------------------------- */
.wrap { max-width: 896px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 768px; }
main { padding: 16px 0 80px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 500;
}

/* --- Header --------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
}
.brand .mark { display: inline-flex; align-items: center; color: var(--primary); }
.brand .mark svg { display: block; }
.brand .name {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.01em;
}
.brand .name .tld {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--fg); color: var(--fg); }
.theme-toggle svg { display: block; width: 15px; height: 15px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* --- Page intro ----------------------------------------------- */
.page-head { padding: 56px 0 8px; }
.page-head .eyebrow { display: block; margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-head h1 .shield { color: var(--primary); flex-shrink: 0; }
.page-head h1 .shield svg { display: block; }
.page-head .intro {
  margin-top: 26px;
  max-width: 64ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.stand {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* --- Sections / prose ----------------------------------------- */
section.block { padding: 40px 0 4px; border-top: 1px solid var(--border); margin-top: 40px; }
section.block:first-of-type { border-top: 0; margin-top: 32px; }
section.block > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
section.block h2 .n {
  font-family: var(--mono);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0;
  margin-right: 12px;
  vertical-align: middle;
}
section.block h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}
.prose { color: var(--fg-soft); font-size: 17px; line-height: 1.7; max-width: 70ch; }
.prose + .prose { margin-top: 16px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 3px;
}
.prose ul { margin: 14px 0; padding-left: 20px; }
.prose li { margin: 7px 0; }
.caption {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

/* --- Tables --------------------------------------------------- */
.table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}
tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: var(--fg-soft);
}
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--fg); font-weight: 500; }
td .yes { color: var(--muted); }
td .no  { color: var(--primary); font-weight: 600; }

/* --- Placeholder chips (unfilled founder inputs) -------------- */
.ph {
  font-family: var(--mono);
  font-size: 0.85em;
  background: color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--primary);
  border: 1px dashed var(--primary);
  padding: 0 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* --- Callout -------------------------------------------------- */
.callout {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
}

/* --- Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0 56px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.site-footer .links a { color: var(--fg-soft); }
.site-footer .links a:hover { color: var(--primary); }
.site-footer .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; line-height: 1.7; }

/* --- Mobile --------------------------------------------------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .page-head { padding: 40px 0 4px; }
  .page-head h1 { gap: 12px; }
  .brand .name { font-size: 20px; }
  h2, p, li { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
}
