:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #5d6a62;
  --line: #dfe4dc;
  --accent: #f2b705;
  --accent-ink: #3a2c00;
  --green: #1f7a4d;
  --green-soft: #e3f3ea;
  --warn-soft: #fff6d6;
  --icon-ink: #3a2c00;
  --radius: 14px;
  --shadow: 0 6px 20px rgba(20, 30, 25, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121714; --surface: #1b221e; --ink: #e9efe9; --muted: #9fb0a5; --line: #2c3631;
    --green: #5cc896; --green-soft: #1d3328; --warn-soft: #362e12; --accent-ink: #1b1400; --icon-ink: #f2b705;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121714; --surface: #1b221e; --ink: #e9efe9; --muted: #9fb0a5; --line: #2c3631;
  --green: #5cc896; --green-soft: #1d3328; --warn-soft: #362e12; --accent-ink: #1b1400; --icon-ink: #f2b705;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--green); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Kopf */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 1rem; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--green-soft); color: var(--green); }

/* Inhalt */
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.03em; }
.hero p { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--green); margin-bottom: 8px; }
main { padding-bottom: 48px; }
article { max-width: 760px; }
article h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 36px 0 12px; }
article h2 { margin-top: 2em; font-size: 1.4rem; }
article h3 { margin-top: 1.5em; font-size: 1.12rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .88rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block;
}
a.card:hover { border-color: var(--green); }
.card h3 { margin: 6px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .tag { font-size: .75rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.section-title { margin: 40px 0 16px; font-size: 1.35rem; }
.box { background: var(--green-soft); border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.box.warn { background: var(--warn-soft); }
.box p:first-child { margin-top: 0; } .box p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-scroll { overflow-x: auto; }

/* Rechner */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 20px 0; }
.calc .fields { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.calc label { display: block; font-size: .9rem; font-weight: 600; }
.calc label small { display: block; font-weight: 400; color: var(--muted); }
.calc input, .calc select {
  width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
.results { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 18px; }
.result { background: var(--bg); border-radius: 12px; padding: 14px; }
.result .label { font-size: .82rem; color: var(--muted); }
.result .value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.result.main { background: var(--green-soft); }
.result.main .value { color: var(--green); }
.devices { width: 100%; }
.devices td input { margin: 0; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px;
  padding: 10px 16px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--line); }

/* Produktempfehlungen (Partnerlinks) */
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.section-lead { color: var(--muted); margin: -8px 0 16px; max-width: 640px; }
.p-head { margin-top: 28px; }
.products { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 16px 0; }
.product { display: flex; gap: 14px; align-items: flex-start; border-top: 4px solid var(--accent); margin: 16px 0; }
.products .product { margin: 0; }
.product .p-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--warn-soft); color: var(--icon-ink);
}
.product .p-body { flex: 1; min-width: 0; }
.product h3 { margin: 0 0 4px; }
.product .p-benefit { font-weight: 700; color: var(--green); font-size: .92rem; margin-bottom: 6px; }
.product .ad { font-size: .7rem; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }
.product .partner-link { white-space: nowrap; }
.product.wide { flex-wrap: wrap; }
.product.wide .partner-link { align-self: center; }
.product.compact { flex-direction: column; }
.product.compact .partner-link { margin-top: auto; width: 100%; text-align: center; padding: 12px 8px; font-size: .95rem; }
.product.compact .p-body { margin-bottom: 14px; }
.btn:hover { filter: brightness(1.06); }
.product[data-partner-empty] .partner-link { display: none; }

/* Fuß */
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.site-foot a { color: var(--muted); }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 4px 9px; cursor: pointer; font: inherit; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; }
  nav.main a { padding: 5px 7px; font-size: .9rem; }
}

/* Vergleichsseite */
article.wide-article { max-width: none; }
article.wide-article > p, article.wide-article > .box { max-width: 760px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.jump a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover { border-color: var(--green); }
h2[id] { scroll-margin-top: 80px; }
table.cmp { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 640px; }
table.cmp th { background: var(--bg); }
table.cmp td:first-child { min-width: 170px; }
.pick { display: block; width: fit-content; margin-top: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 7px; }
.pick.alt { background: var(--green-soft); color: var(--green); }
.score { font-weight: 800; color: var(--green); white-space: nowrap; }
sup a { text-decoration: none; font-size: .75rem; }
.review { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.review h3 { margin: 0 0 8px; }
.review .ad { font-size: .7rem; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; white-space: nowrap; }
ul.pc { list-style: none; padding: 0; margin: 0 0 14px; font-size: .93rem; }
ul.pc li { padding-left: 22px; position: relative; margin: 4px 0; }
ul.pc li::before { position: absolute; left: 0; font-weight: 800; }
ul.pc li.pro::before { content: "+"; color: var(--green); }
ul.pc li.con::before { content: "–"; color: #c0392b; }
.review .btn { margin-top: auto; text-align: center; padding: 12px 8px; font-size: .95rem; }
.sources { font-size: .88rem; color: var(--muted); }
.sources li { margin: 4px 0; }
.sources li:target { background: var(--warn-soft); }
.price { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.price small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.review .price { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: .88rem; }
.product .p-model { font-size: .85rem; color: var(--muted); margin: -2px 0 4px; }
.pick.tip { background: var(--green); color: #fff; }
.review.tip { border-top-color: var(--green); box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.review.tip .pick.tip { margin: 0 0 8px; }
table.cmp tr.tip td { background: var(--green-soft); }
.tipbox { display: grid; gap: 16px; grid-template-columns: 1fr; background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 24px 0; }
.tipbox h2 { margin: 4px 0 6px; font-size: 1.35rem; }
.tipbox p { margin: 0; }
.tipbox .tip-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tipbox .pick.tip { margin: 0; }

/* Produktfinder */
.finder label { font-size: 1rem; }
.finder-row { display: flex; gap: 10px; margin-top: 8px; }
.finder-row input { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; padding: 12px 14px; }
.finder-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green); color: var(--green); }
.finder-answer { background: var(--green-soft); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.finder-answer > p { max-width: 760px; }
.finder-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 16px 0; }
.finder-product { display: flex; flex-direction: column; }
.finder-product.main { border-top: 4px solid var(--accent); }
.finder-product h3 { margin: 0 0 6px; }
.finder-product .ad { font-size: .7rem; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; vertical-align: 2px; white-space: nowrap; }
.finder-product p { margin-bottom: 14px; }
.finder-product .btn { margin-top: auto; text-align: center; }
.finder-product .pick.tip { margin: 0 0 8px; }
@media (max-width: 560px) { .finder-row { flex-direction: column; } }
