/* Reparaturpreise: a plain reference look. Ruled tables, text instead of badges, no card boxes. */
:root {
  --paper: #fdfcf9; --ink: #1b1a17; --ink2: #44413b; --muted: #6f6b63; --rule: #dcd8ce; --tint: #f3f0e7;
  --link: #1b4d8c; --brand: #1b4d8c; --good: #1d6b3b; --mid: #8a5c00; --bad: #a3361f;
  --serif: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161513; --ink: #ece9e2; --ink2: #cdc8be; --muted: #9f998e; --rule: #36332e; --tint: #201e1b;
    --link: #93b9ec; --brand: #5d8fd6; --good: #6cc08b; --mid: #e1b45c; --bad: #ef8b73;
  }
}
:root[data-theme="dark"] {
  --paper: #161513; --ink: #ece9e2; --ink2: #cdc8be; --muted: #9f998e; --rule: #36332e; --tint: #201e1b;
  --link: #93b9ec; --brand: #5d8fd6; --good: #6cc08b; --mid: #e1b45c; --bad: #ef8b73;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--sans); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
p { margin: 10px 0; }
small, .small { font-size: 0.86rem; }
.muted { color: var(--muted); }

/* Masthead */
.masthead { border-top: 5px solid var(--brand); border-bottom: 1px solid var(--rule); }
.wrap, main { max-width: 1040px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wordmark { margin: 0; padding: 16px 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.wordmark a { font: 700 1.4rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--muted); font-size: 0.9rem; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 2px 0 10px; font-size: 0.93rem; }
.masthead nav a { color: var(--ink2); text-decoration: none; padding: 3px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.masthead nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }

main { padding-top: 26px; padding-bottom: 56px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 0 0 12px; max-width: 26ch;
  overflow-wrap: break-word; hyphens: auto; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 52px 0 8px; }
h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.lead { font-size: 1.12rem; color: var(--ink2); max-width: 64ch; margin-top: 0; }
.meta, .note { color: var(--muted); font-size: 0.9rem; }
.note { max-width: 74ch; }

/* Home: index of product groups */
.index { list-style: none; margin: 12px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.index li { position: relative; display: grid; grid-template-columns: minmax(180px, 15rem) 1fr auto; gap: 4px 24px;
  align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.index a { font: 700 1.18rem/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.index a::after { content: ""; position: absolute; inset: 0; }
.index li:hover a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }
.index .who { color: var(--ink2); font-size: 0.92rem; }
.index .count { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }

/* Tables: rules only, no boxes */
.scroll { overflow-x: auto; margin: 14px 0 22px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.scroll table { min-width: 640px; }
th, td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.8rem; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--ink); white-space: nowrap;
  vertical-align: bottom; padding-top: 10px; padding-bottom: 7px; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.num { text-align: right; white-space: nowrap; }
td.num small { color: var(--muted); }
.scroll td:first-child { white-space: nowrap; }
td.incl { font-size: 0.84rem; color: var(--ink2); min-width: 210px; line-height: 1.45; }
.no { color: var(--bad); }
.unk { color: var(--muted); }

/* Brands: newspaper columns separated by rules */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px 40px; margin-top: 30px; }
.brand { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.brand.status-keine, .brand.status-rechner { border-top: 1px solid var(--rule); color: var(--ink2); }
.brand.status-keine h3, .brand.status-rechner h3 { color: var(--ink2); }
.brand .scroll { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 8px 0 12px; }
.brand .scroll table { min-width: 0; }
.brand .scroll thead th { border-bottom-color: var(--rule); }
table.plain td { padding: 7px 12px 7px 0; }
table.plain td.num { padding-right: 0; font-weight: 600; }
table.plain small { color: var(--muted); }
.incl-list { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 12px 0; font-size: 0.88rem; }
.incl-list dt { color: var(--muted); }
.incl-list dd { margin: 0; }
.src { font-size: 0.84rem; color: var(--muted); margin-bottom: 0; }
.src a { color: var(--muted); }
.brandlinks { line-height: 1.9; max-width: 80ch; }

/* Calculator */
.rechner { background: var(--tint); padding: 4px 24px 22px; margin-top: 56px; }
.rechner h2 { margin-top: 18px; }
.rechner > p:first-of-type { max-width: 70ch; color: var(--ink2); }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 18px; margin-top: 16px; }
label { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.86rem; color: var(--ink2); }
input { display: block; width: 100%; font: inherit; font-size: 1rem; padding: 8px 10px; margin-top: 5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--muted); border-radius: 3px; }
input:focus { outline: 2px solid var(--link); outline-offset: 1px; border-color: var(--link); }
.verdict { margin: 18px 0 0; font-weight: 500; max-width: 74ch; }
.verdict::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; margin-right: 0.55em;
  background: var(--rule); vertical-align: 0.02em; }
.verdict.good::before { background: var(--good); }
.verdict.mid::before { background: var(--mid); }
.verdict.bad::before { background: var(--bad); }

/* How to read */
.method dl { margin: 12px 0 0; max-width: 78ch; }
.method dt { font-weight: 600; margin-top: 14px; }
.method dd { margin: 2px 0 0; color: var(--ink2); }

footer { margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.86rem; max-width: 80ch; }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, main { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 20px; padding-bottom: 44px; }
  .index li { grid-template-columns: 1fr; gap: 2px; }
  .scroll .incl { display: none; }
  .scroll table { min-width: 0; }
  .brands { grid-template-columns: 1fr; }
  th, td { padding: 8px 10px; }
  .rechner { padding: 2px 16px 18px; margin-left: -16px; margin-right: -16px; }
  h2 { margin-top: 44px; }
}
