/* toplader.de - ruhiges, uebersichtliches Produkt-Editorial (v3) */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/serif4.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/serif4-i.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --stone: #F5F2EB;
  --stone-deep: #EAE5DB;
  --white: #FFFFFF;
  --ink: #161616;
  --ink-soft: #4D4841;
  --ink-muted: #787268;
  --line: #DCD6CA;
  --signal: #D9480F;
  --signal-dark: #B33A0B;
  --ok: #157347;
  --ok-bg: #E7F5ED;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --bad: #B91C1C;
  --bad-bg: #FEE2E2;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--signal); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  position: relative;
}
.brand-mark::before {
  content: "";
  width: 10px;
  height: 3px;
  background: var(--signal);
  position: absolute;
  top: 3px;
  left: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--signal);
}
.nav-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 5px 11px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* Hero */
.hero-home {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 42px 0 46px;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 10px;
}
.hero-home h1, .hero-sub h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero-sub {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 30px 0 28px;
}
.hero-sub h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
.lead {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 48ch;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.hero-figure figcaption {
  font-size: 0.79rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}
.btn--signal:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: var(--white); }
.btn--full { width: 100%; }

/* Sections */
.section { padding: 52px 0; }
.section--tight { padding: 36px 0 8px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.15;
  margin: 0;
}
.section-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
}
.tab-btn:hover { border-color: var(--ink); color: var(--ink); }
.tab-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.niche-toggle-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 2px;
  border: 1px solid var(--signal);
  background: var(--white);
  color: var(--signal);
  cursor: pointer;
}
.niche-toggle-btn:hover, .niche-toggle-btn[aria-expanded="true"] {
  background: var(--signal);
  color: var(--white);
}

/* Collapsible Compact Niche Checker */
.niche-drawer {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.niche-drawer[hidden] { display: none; }
.finder-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}
.controls-stack { display: grid; gap: 18px; }
.control { min-width: 0; }
.control label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
}
.control output {
  font-variant-numeric: tabular-nums;
  color: var(--signal);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.control input[type="range"] { width: 100%; accent-color: var(--signal); cursor: pointer; }
.control .hint { font-size: 0.78rem; color: var(--ink-muted); margin-top: 3px; }
.live-niche-svg { width: 100%; border: 1px solid var(--line); }

.verdict {
  margin-top: 16px;
  padding: 11px 14px;
  font-size: 0.9rem;
  border-left: 3px solid var(--ink);
  background: var(--stone);
}
.verdict--ok { background: var(--ok-bg); border-left-color: var(--ok); color: #0F5132; }
.verdict--warn { background: var(--warn-bg); border-left-color: var(--warn); color: #78350F; }
.verdict--bad { background: var(--bad-bg); border-left-color: var(--bad); color: #7F1D1D; }

/* Clean 3-Column Product Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-card[hidden] { display: none; }
.p-card.is-mismatch { opacity: 0.48; }

.p-media {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 236px;
}
.p-media img {
  height: 180px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.p-media .elev-svg {
  width: 112px;
  height: auto;
  border: 0;
  background: transparent;
}
.p-media-label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  background: var(--stone);
  color: var(--ink);
}
.p-media-fit {
  position: absolute;
  top: 12px;
  right: 12px;
}

.p-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.p-brand {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 2px;
}
.p-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.25;
}
.p-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 10px 0;
  margin: 0 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.p-specs span { display: block; font-size: 0.7rem; color: var(--ink-muted); }
.p-specs strong { font-size: 0.86rem; font-weight: 700; }

.p-pitch {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.p-foot {
  margin-top: auto;
}
.p-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.p-price {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.p-dims {
  font-size: 0.77rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.p-alt-shops {
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
  margin: 8px 0 0;
}
.p-alt-shops a { color: var(--ink-soft); }

.cards-more {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--eek-B { background: #E3F5E8; color: #156C3D; }
.badge--eek-C { background: #EEF5E3; color: #4C6B14; }
.badge--eek-D { background: #FEF3C7; color: #92400E; }
.badge--eek-F { background: #FEE2E2; color: #991B1B; }

/* Editorial Split Features */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}
.feature-split--rev { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.feature-media { margin: 0; }
.feature-media img { width: 100%; border-radius: 2px; }
.feature-media figcaption { font-size: 0.79rem; color: var(--ink-muted); margin-top: 8px; }
.feature-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.feature-copy p { color: var(--ink-soft); margin: 0 0 16px; }

.cost-bars { display: grid; gap: 12px; margin: 16px 0 22px; font-variant-numeric: tabular-nums; }
.cost-bar-head { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 4px; }
.cost-bar-track { display: flex; height: 12px; background: var(--stone-deep); overflow: hidden; }
.cb-buy { background: var(--ink); }
.cb-run { background: var(--signal); }
.cost-legend { display: flex; gap: 16px; font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 12px; }
.cost-legend i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 5px; }

.rule-list { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.rule-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.rule-num { font-weight: 800; color: var(--signal); font-variant-numeric: tabular-nums; }

/* Print Index */
.index-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.index-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 220px) minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: baseline;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.index-list a:hover { background: var(--stone); }
.idx-num { font-size: 0.84rem; font-weight: 800; color: var(--signal); font-variant-numeric: tabular-nums; }
.idx-title { font-weight: 700; font-size: 0.98rem; }
.idx-desc { font-size: 0.89rem; color: var(--ink-soft); }
.idx-arrow { font-weight: 700; text-align: right; }

/* Tables & Calc */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.table-wrap--no-scroll { overflow-x: visible; }
table { width: 100%; border-collapse: collapse; font-size: 0.89rem; font-variant-numeric: tabular-nums; }
table.table-responsive { width: 100%; table-layout: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--stone); font-weight: 700; font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td .sub { display: block; font-size: 0.78rem; color: var(--ink-muted); margin-top: 2px; font-weight: 400; }
.tbl-model { display: flex; align-items: center; gap: 12px; }
.tbl-thumb { width: 38px; height: 50px; object-fit: contain; flex-shrink: 0; background: var(--white); }
.wide-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; }
.wide-lead { margin: 0 0 18px; color: var(--ink-soft); max-width: 68ch; }
.finder-panel { background: var(--white); border: 1px solid var(--line); padding: 26px 28px; }
.tool-controls--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: 20px; }

/* Article Layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: start; }
.prose { max-width: 66ch; min-width: 0; }
.prose h2 { font-family: var(--serif); font-size: 1.48rem; line-height: 1.2; margin: 30px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.04rem; margin: 20px 0 6px; }
.prose p { margin: 0 0 13px; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.prose li + li { margin-top: 6px; }

.toc { position: sticky; top: 80px; border-top: 2px solid var(--ink); padding-top: 14px; font-size: 0.86rem; }
.toc h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin: 0 0 10px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li + li { margin-top: 7px; }
.toc a { text-decoration: none; color: var(--ink-soft); }
.toc a:hover { color: var(--signal); }

.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--signal); padding: 14px 18px; margin: 18px 0; font-size: 0.92rem; }
.tech-svg { border: 1px solid var(--line); margin: 18px 0; }
.breadcrumbs { font-size: 0.82rem; color: var(--ink-muted); margin: 0 0 10px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.disclosure { font-size: 0.79rem; color: var(--ink-muted); margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--white); border-top: 2px solid var(--ink); padding: 30px 0; font-size: 0.86rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--signal); }

/* Responsive */
@media (max-width: 1040px) {
  .tool-controls--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-split, .finder-top, .feature-split, .feature-split--rev, .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { position: static; }
}
@media (max-width: 820px) {
  .table-wrap--no-scroll { border: 0; background: transparent; }
  table.table-responsive thead { display: none; }
  table.table-responsive,
  table.table-responsive tbody,
  table.table-responsive tr,
  table.table-responsive td { display: block; width: 100%; }
  table.table-responsive tr {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  table.table-responsive tr:last-child { margin-bottom: 0; }
  table.table-responsive td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--stone-deep);
    text-align: right;
    white-space: normal;
    overflow-wrap: break-word;
  }
  table.table-responsive td.num { white-space: normal; }
  table.table-responsive td:first-child {
    display: block;
    text-align: left;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--line);
  }
  table.table-responsive td:last-child { border-bottom: 0; padding-bottom: 0; }
  table.table-responsive td:not(:first-child)::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--ink-muted);
    text-align: left;
    flex: 0 1 auto;
    max-width: 100%;
  }
  table.table-responsive td:not(:first-child) > .sub {
    display: inline;
    margin-left: 6px;
  }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 58px;
    background: var(--white);
    border-bottom: 1px solid var(--ink);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav.is-open { display: flex; }
  .hero-home { padding: 28px 0 32px; }
  .cards-grid { grid-template-columns: 1fr; }
  .index-list a { grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 8px; }
  .idx-desc { grid-column: 2 / 3; }
  .tool-controls--4 { grid-template-columns: 1fr; }
  .finder-panel { padding: 18px 16px; }
  .niche-drawer { padding: 16px; }
}
