/*
 * spec-page.css — Spec-Hub-Layout (Modellseiten + Vergleich), an das Design-System
 * styles.css angeglichen. Wird NACH styles.css geladen und nutzt dessen Design-Tokens
 * (--navy, --accent, --ink, --muted, --line, --bg-soft, --radius, --shadow …).
 * Vanilla CSS, kein Build (02_GUARDRAILS.md §F).
 * Spec-Tabellen, Quellenlinks und Render-Klassen (spec-render.js) bleiben unverändert.
 */
:root { --warnbg: var(--warn-bg); }   /* Alt-Alias für die Schätzungs-Hervorhebung */

/* Inhaltsspalte der Datenblatt-/Hub-Seiten (Header/Footer nutzen .container) */
main { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.spec-head { margin-bottom: 1.5rem; }
.spec-head h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.18; color: var(--navy);
                font-weight: 800; letter-spacing: -.01em; margin: 0 0 .35rem; }
.spec-head .meta { color: var(--muted); font-size: .9rem; margin: 0 0 .75rem; }
.spec-head .summary { font-size: 1.05rem; margin: 0 0 1rem; color: var(--ink); }

.spec-group { margin: 2rem 0; }
.spec-group h2 { font-size: 1.3rem; color: var(--navy); font-weight: 700; margin: 0 0 .5rem;
                 padding-top: .9rem; border-top: 1px solid var(--line); }
dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: .25rem 1rem;
            padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-weight: 600; color: var(--navy); }
.spec-row dd { margin: 0; }
.spec-row .val { font-size: 1.02rem; }
.spec-row.is-schaetzung { background: var(--warnbg); border-radius: 8px;
                          padding-left: .5rem; padding-right: .5rem; }

.tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-left: .35rem; vertical-align: middle; }
.tag { font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--line);
       background: var(--bg-soft); color: var(--muted); }
.tag-schaetzung { background: #ffe9c7; border-color: #ecd9a8; color: var(--warn); font-weight: 600; }
.tag-unabhaengig { background: #e6f4ea; border-color: #bfe0c7; color: #1d6b34; }
.hint { font-size: .72rem; color: var(--muted); font-style: italic; }

.src { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.note { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* CTA: TrueCost-Rechner + Hersteller-Direktlink (dunkle Akzentfläche im Marineblau) */
.spec-cta { background: var(--navy); color: #fff; border-radius: var(--radius);
            padding: 1.75rem; margin: 2.5rem 0; text-align: center; box-shadow: var(--shadow); }
.spec-cta-lead { margin: 0 0 .9rem; font-size: 1rem; opacity: .9; }
.spec-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.spec-cta-btn { display: inline-block; background: #fff; color: var(--navy);
                font-weight: 600; font-size: 1rem; padding: .7rem 1.5rem;
                border-radius: 8px; text-decoration: none; }
.spec-cta-btn:hover { background: #eef2f8; text-decoration: none; }
.spec-cta-btn-secondary { background: transparent; color: #fff;
                          border: 2px solid rgba(255,255,255,.65); }
.spec-cta-btn-secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.spec-sources { margin: 2rem 0; }
.spec-sources h2 { font-size: 1.3rem; color: var(--navy); font-weight: 700;
                   padding-top: .9rem; border-top: 1px solid var(--line); }
.spec-sources ul { padding-left: 1.25rem; font-size: .9rem; }

.spec-related { margin: 2rem 0; }
.spec-related h2 { font-size: 1.3rem; color: var(--navy); font-weight: 700;
                   padding-top: .9rem; border-top: 1px solid var(--line); }
.spec-related .muted { margin: .35rem 0; }
.related-list { list-style: none; padding: 0; margin: .75rem 0;
  display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related-list li { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem;
  background: #fff; box-shadow: var(--shadow); }
.related-list li a { font-weight: 600; text-decoration: none; }
.related-list li a:hover { text-decoration: underline; }
.related-mfg { display: block; color: var(--muted); font-size: .82rem; margin-top: .15rem; }

.spec-foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.muted { color: var(--muted); font-size: .9rem; }
.disclaimer { margin-top: .25rem; }

/* Vergleichsseite (vergleich.html) */
.compare-page main { max-width: 1040px; }
.compare-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top;
  padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
table.compare thead th { border-bottom: 2px solid var(--navy);
  position: sticky; top: 0; z-index: 2; background: var(--bg-soft); color: var(--navy); }
table.compare th[scope="row"] { font-weight: 600; width: 190px; min-width: 160px;
  background: var(--bg-soft); position: sticky; left: 0; z-index: 1; color: var(--navy); }
table.compare .row-head-corner { position: sticky; left: 0; top: 0; z-index: 3;
  background: var(--bg); }
table.compare th[scope="col"]:not(.row-head-corner) { min-width: 180px; }
table.compare td { min-width: 160px; }
table.compare th[scope="col"] .m-name { display: block; font-size: 1rem; }
table.compare th[scope="col"] .m-meta { display: block; color: var(--muted);
  font-size: .78rem; font-weight: 400; margin-top: .15rem; }
table.compare td .val { font-size: 1rem; }
table.compare td .cell-src { display: block; font-size: .76rem; color: var(--muted); margin-top: .3rem; }
table.compare td.cell-empty { color: var(--muted); }
table.compare td .dash { font-weight: 600; }
table.compare td .cell-note { display: block; font-size: .76rem; color: var(--muted); margin-top: .15rem; }
table.compare td.is-schaetzung { background: var(--warnbg); }

/* Filter-Bar (vergleich.html) */
.filter-bar { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
              padding: 1rem 1.25rem; margin: 1.25rem 0; }
.filter-bar > * + * { margin-top: .75rem; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.filter-label { font-weight: 600; font-size: .9rem; min-width: 140px; color: var(--navy); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-btn { padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px;
              background: #fff; color: var(--ink); font-size: .85rem; cursor: pointer;
              font-family: inherit; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-hint { font-size: .78rem; color: var(--muted); }
#payload-slider { width: 160px; cursor: pointer; }
#price-range { font-size: .88rem; font-family: inherit; padding: .2rem .4rem;
               border: 1px solid var(--line); border-radius: 8px; background: #fff;
               color: var(--ink); cursor: pointer; }
.filter-result { font-size: .85rem; color: var(--muted); margin: 0; padding-top: .25rem; }
.filter-active-hint { font-size: .85rem; color: var(--warn); background: var(--warnbg);
                      border-radius: 8px; padding: .2rem .6rem; }

/* Fehlende-Modell-CTA (vergleich.html + Spec-Seiten) */
.missing-model-cta { border: 1px solid var(--line); border-radius: var(--radius);
                     padding: 1rem 1.5rem; margin: 1.75rem 0; text-align: center; }
.missing-model-cta p { margin: 0 0 .6rem; font-size: .92rem; color: var(--muted); }
.missing-model-cta a.missing-model-btn { display: inline-block; border: 2px solid var(--accent);
  color: var(--accent); font-weight: 600; font-size: .92rem; padding: .4rem 1.2rem;
  border-radius: 8px; text-decoration: none; }
.missing-model-cta a.missing-model-btn:hover { background: var(--accent); color: #fff; }

/* Modell-Index (Hub) */
.model-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.model-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.model-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.model-list .cat { color: var(--muted); font-size: .85rem; margin-left: .5rem; }
.model-list p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
</content>
