:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #16212b;
  --muted: #5d6b76;
  --line: #dfe4e2;
  --accent: #0e7a6e;
  --accent-ink: #ffffff;
  --accent-soft: #e2f2ef;
  --warn: #9a5b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 33, 43, .06), 0 4px 16px rgba(22, 33, 43, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1518; --surface: #172025; --ink: #e6ecea; --muted: #9aa9a6;
    --line: #26323a; --accent: #3cc3ae; --accent-ink: #062320; --accent-soft: #143430;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .6em 0 .3em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Header / Footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.2rem; }
.main-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--accent); }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; color: var(--muted); }
.footer-inner { padding-top: 24px; padding-bottom: 32px; }
.footer-inner nav { display: flex; gap: 18px; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 6px 14px; font-size: .9rem; }

/* Startseite */
.hero { padding: 40px 0 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.cat-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s; }
.cat-card:hover { border-color: var(--accent); }
.cat-card h2 { margin: 0 0 .4em; }
.cat-card p { color: var(--muted); margin: 0 0 .8em; }
.meta { font-size: .85rem; color: var(--accent); font-weight: 600; }
.explain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 20px; }
.explain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* Listing */
.crumbs { font-size: .875rem; color: var(--muted); margin-top: 20px; }
.crumbs a { color: var(--muted); }
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; margin-top: 20px; }
@media (max-width: 860px) { .listing { grid-template-columns: 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 84px; }
@media (max-width: 860px) { .filters { position: static; } }
.filters h2 { margin-top: 0; font-size: 1.1rem; }
.field { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.field > span, .field > legend { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.field.range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.field.range legend { grid-column: 1 / -1; }
.field.check { display: flex; gap: 8px; align-items: center; }
input[type=number], select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.count { color: var(--muted); margin: 0 0 12px; }
.empty { background: var(--accent-soft); border-radius: var(--radius); padding: 4px 20px 12px; }

.product-list { display: grid; gap: 12px; }
.product-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .product-card { grid-template-columns: 64px 1fr; } .pc-price { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } }
.product-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.brand-name { color: var(--muted); font-weight: 500; }
.img-placeholder { display: grid; place-items: center; aspect-ratio: 1; background: var(--accent-soft); color: var(--accent); border-radius: 10px; font-size: 1.8rem; }
.img-placeholder.big { width: 200px; font-size: 3rem; }
.specs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .875rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.pc-price { text-align: right; }
.pc-price strong { font-size: 1.25rem; }
.pc-price .from, .pc-price .offers, .no-price { display: block; font-size: .8rem; color: var(--muted); }
.pc-price .btn { margin-top: 8px; }

/* Produktseite */
.product-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 12px 0 8px; }
@media (max-width: 600px) { .product-head { grid-template-columns: 1fr; } }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--accent); font-weight: 700; margin: 0; }
.best-price strong { font-size: 1.4rem; }
.eprel { font-size: .875rem; color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.spec-table th { width: 45%; font-weight: 500; color: var(--muted); }
.offers, .result-table { display: block; overflow-x: auto; }
.chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--accent); }
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption { color: var(--muted); font-size: .875rem; margin-top: 8px; }

/* Rechner */
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; margin: 0 0 16px; }
.calc legend { font-weight: 700; padding: 0 6px; }
.calc > fieldset { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.calc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.calc-result { margin: 8px 0 24px; }
.verdict { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 1.05rem; }

.prose { max-width: 72ch; }
.link-list { line-height: 2; }
