/* Cashklar — static site, de-CH
   Paper ledger / Swiss finance. No stock clutter. */

/* Fonts: self-hosted (SIL OFL 1.1, see fonts/OFL-*.txt). Latin subset, variable woff2, same faces and weights as the former externally hosted fonts. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.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: 650;
  font-display: swap;
  src: url("../fonts/fraunces-latin-opsz-normal.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;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.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: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.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: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.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 {
  --bg: #f4f0e8;
  --bg-elev: #fbf8f2;
  --ink: #14231f;
  --ink-soft: #3a4f48;
  --muted: #6a7b74;
  --line: #ddd6c8;
  --forest: #1e4d44;
  --forest-2: #163830;
  --forest-3: #0f2a25;
  --mint: #dce8e3;
  --mint-2: #c5d8d0;
  --gold: #a67c2d;
  --gold-2: #c9a227;
  --gold-soft: #f3e8d0;
  --white: #fffefb;
  --danger: #8b3a2a;
  --shadow: 0 12px 40px rgba(20, 35, 31, 0.08);
  --radius: 14px;
  --max: 1080px;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 0.18em; }
a:hover { color: var(--forest-2); }
h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: 0.3em; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.gold { color: var(--gold); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); }
.nav .nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav .nav-cta:hover { background: var(--forest-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn-primary {
  background: var(--forest);
  color: var(--white) !important;
}
.btn-primary:hover { background: var(--forest-2); }
.btn-ghost {
  background: transparent;
  color: var(--forest) !important;
  border-color: var(--mint-2);
}
.btn-ghost:hover { background: var(--mint); }
.btn-gold {
  background: var(--gold);
  color: var(--white) !important;
}
.btn-gold:hover { background: #8e6924; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.3rem 0 0.4rem;
}
.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* Hero */
.hero {
  padding: 3.4rem 0 2.6rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin: 0.4rem 0 0.2rem;
  font-weight: 700;
}
.price-chip strong { font-size: 1.2rem; color: var(--forest-2); }
.kicker { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); margin-bottom: 0.8rem; }

/* Strips / cards */
.section { padding: 2.4rem 0; }
.section-alt { background: var(--bg-elev); border-block: 1px solid var(--line); }
.grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.num {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.kpi {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.kpi p { color: color-mix(in srgb, var(--white) 78%, var(--mint)); margin: 0; font-size: 0.95rem; }
.kpi strong { display: block; font-size: 1.15rem; margin-bottom: 0.2rem; color: var(--white); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 1rem 0 0.4rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
th, td {
  text-align: left;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--forest);
  color: var(--white);
  font-weight: 650;
}
tr:last-child td { border-bottom: 0; }
td:nth-child(n+2) { font-weight: 600; }
.hl { color: var(--forest); }

/* Lists of who */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.yes { border-top: 3px solid var(--forest); }
.no { border-top: 3px solid var(--line); }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  display: block;
  position: relative;
  padding-left: 3rem;
  min-height: 2.2rem;
  margin: 0 0 0.85rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-weight: 650;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest-2);
  display: grid;
  place-items: center;
}

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.55rem;
}
summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-weight: 700;
}
details[open] summary::after { content: "–"; }
details p { margin: 0.6rem 0 0.2rem; color: var(--ink-soft); }

/* Form */
form.card { max-width: 32rem; }
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.3rem;
}
input[type="email"], input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}
input:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
  border-color: var(--forest);
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 400;
}
.check input { margin-top: 0.3rem; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Banner / trust */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.trust li { display: flex; gap: 0.4rem; }
.trust li::before { content: "✓"; color: var(--forest); font-weight: 700; }

.final-cta {
  background: var(--forest-2);
  color: var(--white);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  text-align: center;
}
.final-cta h2, .final-cta p { color: var(--white); }
.final-cta p { color: color-mix(in srgb, var(--white) 80%, var(--mint)); }

/* Footer */
.site-footer {
  background: var(--forest-3);
  color: color-mix(in srgb, var(--white) 78%, var(--mint));
  padding: 2.4rem 0 1.6rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}
.site-footer a { color: var(--gold-2); }
.site-footer .brand { color: var(--white); margin-bottom: 0.6rem; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.foot-copy { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent); color: color-mix(in srgb, var(--white) 55%, var(--mint)); font-size: 0.82rem; }

@media (max-width: 800px) {
  .grid-3, .grid-2, .split, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.2rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* Blog / Ratgeber */
.article {
  max-width: 42rem;
  margin-inline: auto;
  padding: 2.2rem 0 1rem;
}
.article .meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.article h2 { margin-top: 1.85rem; }
.article h3 { margin-top: 1.2rem; }
.article .lede { margin-bottom: 1.2rem; }
.callout {
  background: var(--mint);
  border: 1px solid var(--mint-2);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.3rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
}
.post-list li + li { margin-top: 0; }
.post-list a {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.post-list a:hover { color: var(--forest); }
.post-list .post-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--forest); }

/* Mobile: clear Netlify badge over bottom CTAs (~375px) */
@media (max-width: 480px) {
  body {
    padding-bottom: 4.5rem;
  }
  .site-footer {
    padding-bottom: 3.2rem;
  }
  .final-cta {
    margin-bottom: 1rem;
  }
  /* Hero .cta-row clear badge */
  .hero .cta-row {
    padding-bottom: 5rem;
  }
  .cta-row {
    margin-bottom: 0.5rem;
  }
}

/* Mobile: tables and long inline code must not widen the page (QA 375px) */
code { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 480px) {
  table { font-size: 0.9em; }
  th, td { padding: 0.5rem 0.45rem; }
}
