/* Hallo Eigenheim · Ratgeber- und Kantonsseiten · 2026-12-03
   Modus Read: gleiche Welt wie index.html / legal.css (Lila + Aprikose, Bricolage + System).
   Ruhige Leseseite, ein Akzent fuer den Weg zum Rechner. */
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F5F2F8;
  --surface: #FDFCFE;
  --ink: #2E1A3B;
  --muted: #5E4C6B;
  --line: #DDD3E6;
  --panel: #4A2A63;
  --panel-ink: #F6F0FA;
  --panel-muted: #D9CBE6;
  --accent: #F4B98E;
  --accent-press: #EFA875;
  --on-accent: #2E1A3B;
  --focus: #2E1A3B;
  --display: "Bricolage", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1E1426; --surface: #2A1D34; --ink: #F6F0FA; --muted: #CDBFD9; --line: #46365A; --panel: #3A2150; --focus: #F4B98E; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; font: 400 1.0625rem/1.7 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(720px, 100% - 48px); margin-inline: auto; }

/* Kopf */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { width: min(1040px, 100% - 48px); display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font: 620 1.25rem/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.logo { width: 36px; height: 38px; flex: none; color: var(--ink); }
.logo .dot { fill: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 .9375rem/1 var(--text); text-decoration: none; background: var(--accent); color: var(--on-accent);
  transition: transform 160ms var(--ease), background-color 160ms ease; }
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { background: var(--accent-press); } }
.btn svg { width: 18px; height: 18px; }

/* Artikel */
main { padding: 32px 0 72px; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1 { font: 700 clamp(2rem, 6vw, 3rem)/1.06 var(--display); letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; overflow-wrap: break-word; }
.lead { font-size: 1.1875rem; line-height: 1.6; margin: 0 0 20px; max-width: 62ch; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--muted); margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.byline picture, .byline img { display: block; width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; }

article h2 { font: 650 clamp(1.375rem, 3.4vw, 1.625rem)/1.2 var(--display); letter-spacing: -.02em; margin: 52px 0 12px; text-wrap: balance; }
article h3 { font: 650 1.125rem/1.3 var(--display); margin: 32px 0 8px; }
article p, article ul, article ol { margin: 0 0 16px; max-width: 68ch; }
article ul, article ol { padding-left: 1.25em; }
article li + li { margin-top: 6px; }
article li::marker { color: var(--muted); }
article strong { font-weight: 650; }

/* Tabellen (z. B. Kaufnebenkosten pro Kanton) */
.table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: color-mix(in srgb, var(--line) 35%, var(--surface)); }
tr:last-child td { border-bottom: 0; }
table.wide { min-width: 560px; } /* nur Tabellen mit langem Text scrollen seitlich */

/* Weg zum Rechner */
.cta { margin: 40px 0; padding: 28px; border-radius: 22px; background: var(--panel); color: var(--panel-ink);
  display: grid; gap: 16px; box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--panel) 80%, transparent); }
.cta p { margin: 0; max-width: 44ch; }
.cta .cta-title { font: 650 1.375rem/1.2 var(--display); letter-spacing: -.02em; }
.cta .cta-text { color: var(--panel-muted); }
.cta .btn { justify-self: start; }
@media (min-width: 640px) { .cta { grid-template-columns: 1fr auto; align-items: center; } .cta .btn { justify-self: end; } }

/* FAQ */
.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.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;
  min-height: 56px; padding: 14px 0; font: 600 1.0625rem/1.4 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Berater */
.advisor { display: flex; gap: 16px; align-items: center; margin: 48px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.advisor picture, .advisor img { display: block; width: 64px; height: 64px; border-radius: 50%; flex: none; object-fit: cover; }
.advisor p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.advisor p + p { margin-top: 6px; color: var(--muted); }

/* Weiterlesen und Quellen */
.more { margin-top: 48px; }
.more ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.more a { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; font-weight: 600; transition: border-color 160ms ease; }
@media (hover: hover) { .more a:hover { border-color: var(--muted); } }
.more svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.sources { margin-top: 48px; font-size: .875rem; color: var(--muted); }
.sources h2 { font-size: 1.0625rem; margin-top: 0; }
.sources ol { padding-left: 1.25em; }
.sources a { overflow-wrap: anywhere; }
.note { font-size: .875rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .875rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 640px) {
  .wrap, .nav .wrap { width: calc(100% - 32px); }
  main { padding-top: 24px; }
  .cta { padding: 22px; border-radius: 18px; }
  .nav .btn { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
