/* gold-trust.ch, site.css
   Tokens und Layout nach DESIGN.md v04 (D30, D31): diskret, editorialer Rhythmus,
   nummerierte Abschnitte, zwei dunkle Baender. Keine Schatten, keine Verlaeufe, keine
   Bewegung, keine Akzentfarbe. Keine Gedankenstriche in diesen Kommentaren. */

/* ---------- Schriften, lokal, OFL 1.1, Lizenztexte in public/fonts/ ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("/public/fonts/source-serif-4-var-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  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";
  src: url("/public/fonts/source-sans-3-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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;
}

/* ---------- Tokens ---------- */
:root {
  --ground: #FBF9F2;
  --text: #1E1F22;
  --muted: #707173;
  --rule: rgb(184 185 187 / .55);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --body: clamp(1.125rem, 1.05rem + .25vw, 1.25rem);   /* 18 bis 20 px */
  --h2: clamp(2rem, 1.4rem + 2vw, 3.25rem);            /* 32 bis 52 px, Aussagesaetze */
  --h1: clamp(40px, 5.5vw, 76px);

  --band: clamp(6rem, 4rem + 5vw, 8rem);               /* 96 bis 128 px */
  --content: 1200px;
  --measure: 34em;                                     /* hoechstens 68 Zeichen */
}

/* Dunkle Baender: dieselben Tokens, getauscht. #B8B9BB auf #1E1F22 liest 9:1, AA. */
.dark {
  background: var(--text);
  color: var(--ground);
  --muted: #B8B9BB;
  --rule: rgb(184 185 187 / .35);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

.wrap {
  width: min(100% - 3rem, var(--content));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.t17 { font-size: 1.0625rem; }
.t15 { font-size: .9375rem; }
.big { font-size: 1.25rem; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: var(--h2); line-height: 1.08; letter-spacing: -.01em; }
h3 { font-size: 1em; font-weight: 500; line-height: 1.3; }
em { font-style: italic; }

.kicker, .num, label, .note, .colophon, .lang { color: var(--muted); }
.kicker, label, .note, .colophon, .lang { font-family: var(--sans); }
.kicker, label {
  font-size: .6875rem;                                  /* 11 px */
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.num { font-size: .8125rem; margin: 0 0 .5rem; }        /* 13 px, Serife */
.note { font-size: .8125rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--ground);
  padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; }

/* ---------- Kopf, rund 72 px, Haarlinie darunter ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-header nav { display: flex; align-items: baseline; gap: 2rem; }
.lang { font-size: .8125rem; letter-spacing: .06em; }
.lang a { text-decoration: none; }
.lang a[aria-current] { color: var(--text); }
/* Das PNG ist 187 mal 64 px und wird als 2x-Bild gezeigt (D30). */
.brand img { width: 94px; height: auto; }

/* ---------- 00 Eroeffnung ---------- */
.opening { padding: 18vh 0 14vh; }
.opening h1 { max-width: 100%; margin-bottom: 2rem; }
.opening .sub { font-size: 1.25rem; margin-bottom: 2.5rem; }

/* ---------- Baender ---------- */
.band { padding-block: var(--band); }
.band + .band:not(.dark) { border-top: 1px solid var(--rule); }
.dark + .band { border-top: 0; }
.dark { padding-block: 120px; }

.cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
}
.lead { align-self: start; }
.text > p:last-child, .text > ol:last-child { margin-bottom: 0; }

/* 01: drei Spalten mit Haarlinien dazwischen */
.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: var(--band);
  border-top: 1px solid var(--rule);
  padding-top: 3rem;
}
.three > div { padding: 0 2rem; }
.three > div:first-child { padding-left: 0; }
.three > div + div { border-left: 1px solid var(--rule); }
.three h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.three p { font-size: 1.0625rem; }

/* 02: Grundsaetze an einer Haarlinie mit kleinen Kreisnummern */
.spine {
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.5rem;
  position: relative;
  counter-reset: grundsatz;
}
.spine::before {
  content: "";
  position: absolute;
  left: .875rem;
  top: .875rem;
  bottom: .875rem;
  width: 1px;
  background: var(--rule);
}
.spine li { position: relative; margin-bottom: 40px; }
.spine li:last-child { margin-bottom: 0; }
.spine li::before {
  counter-increment: grundsatz;
  content: counter(grundsatz);
  position: absolute;
  left: -3.5rem;
  top: .125rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--ground);
  font-size: .75rem;
  line-height: 1.625rem;
  text-align: center;
  color: var(--muted);
}
.spine h3 { font-size: 1.625rem; margin-bottom: .5rem; }

/* 03: Faktentabelle */
.facts { margin: var(--band) 0 0; }
.facts > div {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 1.375rem; }
.facts dd { margin: 0; font-size: .9375rem; color: var(--muted); align-self: center; }

/* 05: sechs Zeilen */
.rows .row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  padding-block: 32px;
  border-top: 1px solid var(--rule);
}
.rows .kicker { margin-bottom: 2rem; }
.rows h3 { font-size: 1.875rem; font-weight: 400; }

/* ---------- 08 Kontakt, Formular mit Haarlinien statt Kaesten ---------- */
form { max-width: var(--measure); }
form p { margin: 0 0 1.75rem; }
label { display: block; margin-bottom: .25rem; }
input, textarea, button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  width: 100%;
  padding: .4em 0;
  margin: 0;
}
input:focus, textarea:focus { border-bottom-color: currentColor; outline: none; }
textarea { resize: vertical; }
button {
  width: auto;
  border: 1px solid currentColor;
  padding: .55em 1.5em;
  cursor: pointer;
}
.hp { position: absolute; left: -999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: none; }
.form-note:target { display: block; }
.cf-turnstile { margin-bottom: 1.75rem; }
form .note { margin: 0; }

/* ---------- Fliesstext der Datenschutzseite ---------- */
.prose { padding-block: var(--band); max-width: 44em; }
.prose h1 { font-size: var(--h2); line-height: 1.06; margin-bottom: 1.5em; }
.prose h2 { font-size: 1.5rem; line-height: 1.2; margin: 2.5em 0 .75em; }
.prose h3 { margin-top: 2em; font-size: 1.125em; }
.prose h4 { font-size: 1em; font-weight: 500; margin: 1.5em 0 .5em; }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose address { font-style: normal; }
.prose .note { font-family: var(--serif); font-size: .9em; }
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
table { border-collapse: collapse; font-size: .9em; }
th, td { text-align: left; vertical-align: top; padding: .5em .75em .5em 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 500; }

/* ---------- Fuss, 13 px, zweite Farbe ---------- */
.colophon { border-top: 1px solid var(--rule); font-size: .8125rem; }
.colophon .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.5rem;
}
.colophon p { margin: 0; }
.colophon a { margin-left: 1.5rem; }

/* ---------- Schmal: jedes Band einspaltig, gleiche Reihenfolge ---------- */
@media (max-width: 760px) {
  .cols, .facts > div, .rows .row { grid-template-columns: 1fr; gap: 1.5rem; }
  .lead { margin-bottom: .5rem; }
  .three { grid-template-columns: 1fr; padding-top: 0; }
  .three > div { padding: 2rem 0; border-top: 1px solid var(--rule); }
  .three > div + div { border-left: 0; }
  .opening { padding: 12vh 0 10vh; }
  .dark { padding-block: 80px; }
  .site-header nav { gap: 1.25rem; }
}
