/* umzug-auf-rechnung.ch — Dokument-Optik: Papier, Linien, Serifen-Titel.
   Bewusst anders als die Kantons-Flagships (dort: breite Bänder, Sans-Titel). */

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1b1a17;
  --muted: #5f5c54;
  --rule: #e2ddd2;
  --rule-strong: #cdc6b7;
  --ok: #15803d;
  --ok-soft: #eef6f0;
  --warn: #9a3412;
  --warn-soft: #fdf3ec;
  --radius: 10px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

html, body { background: var(--paper); }
body { color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.68; margin: 0; }
* { box-sizing: border-box; }

.wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 50; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.18; margin: 0 0 14px; }
h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.25; margin: 44px 0 14px; }
h3 { font-size: 19px; margin: 30px 0 8px; }
p { margin: 0 0 17px; }
a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ok); }

/* ---------- Kopf ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--card); position: sticky; top: 0; z-index: 30; }
/* Kopfzeile darf breiter sein als die Lesespalte, damit die Navigation nicht umbricht */
.site-head .wrap, .site-foot .wrap { max-width: 1060px; }
.head__inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 26px; height: 26px; color: var(--ink); flex: 0 0 auto; }
.brand__text { font-family: var(--mono); font-size: 15px; letter-spacing: -0.02em; }
.brand__text span { color: var(--muted); }
.brand__text i { font-style: normal; color: var(--ok); }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.nav a { font-size: 14.5px; text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ok); }
.nav { display: flex; align-items: center; gap: 20px; }
/* .nav a ist spezifischer als .btn und wuerde sonst die Schriftfarbe des Knopfs ueberschreiben */
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 34px; border-bottom: 1px solid var(--rule); background:
  linear-gradient(var(--card), var(--card)) padding-box,
  repeating-linear-gradient(var(--card) 0 31px, var(--rule) 31px 32px); }
.hero__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); margin: 0 0 12px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 64ch; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero__hint { font-size: 14px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ok); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid var(--ok); }
.btn:hover { background: #126c34; border-color: #126c34; }
.btn--small { padding: 9px 15px; font-size: 14.5px; }
.btn--light { background: var(--card); color: var(--ink); border-color: var(--rule-strong); }
.btn--light:hover { background: #f4f1ea; }

/* ---------- Inhalt ---------- */
main section { padding: 34px 0; }
main section + section { border-top: 1px solid var(--rule); }
.lead { font-size: 18.5px; color: var(--muted); }
.note { font-size: 15px; color: var(--muted); }

/* Belegkarte: zentrales Element der Seite */
.beleg { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0; }
.beleg__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 14px; }
.beleg__head b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.beleg__head span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.beleg ul { list-style: none; margin: 0; padding: 0; }
.beleg li { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dotted var(--rule); font-size: 15.5px; }
.beleg li:last-child { border-bottom: none; }
.beleg li b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }

.hinweis { border-left: 3px solid var(--ok); background: var(--ok-soft); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0; }
.hinweis--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.hinweis p:last-child { margin-bottom: 0; }

/* Listen mit Häkchen */
.liste { list-style: none; margin: 18px 0; padding: 0; }
.liste li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.liste li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 6px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.liste--warn li::before { border-color: var(--warn); }

/* Schritte */
.howto { counter-reset: s; margin: 24px 0; }
.howto-step { counter-increment: s; position: relative; padding: 0 0 20px 54px; }
.howto-step::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px;
  border: 1px solid var(--rule-strong); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; background: var(--card); }
.howto-step::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 1px; background: var(--rule); }
.howto-step:last-child::after { display: none; }
.howto-step h3 { margin: 5px 0 6px; }
.howto-step p { margin-bottom: 0; color: var(--muted); font-size: 16px; }

/* Tabellen: Rechnungszeilen-Optik, auf dem Handy als Karten (base.css: t-stack) */
main table { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--card); font-size: 15.5px; }
main table caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
main table th, main table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
main table thead th { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f6f4ef; }
main table td:last-child { font-family: var(--mono); }
main table.t-stack tr > :first-child { font-weight: 600; }

/* Bilder */
.media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--rule); border-radius: var(--radius); margin: 26px 0; background: #f1efe9; }
.media--hoch { aspect-ratio: 4 / 3; }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 15px 18px; font-weight: 600; font-family: var(--serif); font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--ok); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item > :not(summary) { padding: 0 18px 16px; color: var(--muted); font-size: 16px; }

/* Querverweise */
.weiter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; }
.weiter a { display: block; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 15px 17px; text-decoration: none; }
.weiter a:hover { border-color: var(--ok); }
.weiter b { display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 3px; }
.weiter span { font-size: 14.5px; color: var(--muted); }

/* Band vor dem Footer */
.band { background: var(--ink); color: #f3f1ec; padding: 34px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.band p { color: #c9c5bb; margin: 0; max-width: 54ch; font-size: 16px; }

/* Fuss */
.site-foot { background: var(--card); border-top: 1px solid var(--rule); padding: 38px 0 22px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
.foot__brand p { color: var(--muted); margin: 10px 0 0; }
.foot__note { font-size: 13.5px; }
.foot__title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li { margin-bottom: 7px; }
.foot__col a { color: var(--muted); text-decoration: none; }
.foot__col a:hover { color: var(--ink); }
.foot__bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 16px; color: var(--muted); font-size: 14px; }
.foot__bottom p { margin: 0; }

.mobile-cta { display: none; }

@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr; }
  .weiter { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--card);
    border: 1px solid var(--rule-strong); border-radius: 8px; padding: 8px 13px; font: inherit; font-size: 14.5px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card);
    border-bottom: 1px solid var(--rule); padding: 14px 22px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 9px 0; font-size: 16px; display: block; border-bottom: 1px solid var(--rule); }
  .site-head { position: relative; }
  .hero { padding: 38px 0 26px; }
  .beleg { padding: 18px; }
  .beleg li { flex-direction: column; gap: 2px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .mobile-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .mobile-cta .btn { width: 100%; box-shadow: 0 6px 22px rgba(27,26,23,.22); }
  main { padding-bottom: 76px; }
}
