/* KFZ Affiliate — product boxes, buttons, badges, comparison tables.
   Review-Magazine look: clean, white, Inter, Amazon-orange CTA only. */

:root {
  --kfz-primary: #FF9900;   /* Amazon orange — CTA only */
  --kfz-primary-d: #e88a00;
  --kfz-link: #0066C0;
  --kfz-text: #1A1A1A;
  --kfz-muted: #666;
  --kfz-border: #E5E5E5;
  --kfz-surface: #F7F7F7;
  --kfz-success: #007600;
  --kfz-winner: #FFD700;
  --kfz-star: #f5a623;
}

/* ---------- Buttons ---------- */
.kfz-btn {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: inherit; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  border: 0; border-radius: 8px;
  transition: background-color .15s ease, transform .05s ease;
}
.kfz-btn--amazon { background: var(--kfz-primary); color: #1a1a1a; }
.kfz-btn--amazon:hover { background: var(--kfz-primary-d); color: #1a1a1a; }
.kfz-btn--amazon:active { transform: translateY(1px); }
.kfz-btn--small { padding: .5em .9em; font-size: .85rem; }
.kfz-btn--large { padding: .85em 1.4em; font-size: 1.05rem; width: 100%; justify-content: center; }
.kfz-btn__arrow { font-weight: 700; }

/* ---------- Badges ---------- */
.kfz-badge {
  display: inline-block; padding: .2em .6em; border-radius: 4px;
  font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.kfz-badge--gold   { background: var(--kfz-winner); color: #5a4500; }
.kfz-badge--green  { background: #e6f4e6; color: var(--kfz-success); }
.kfz-badge--orange { background: #fff0d9; color: #b25e00; }
.kfz-badge--blue   { background: #e6f0fa; color: var(--kfz-link); }

/* ---------- Star rating ---------- */
.kfz-stars { display: inline-block; line-height: 1; }
.kfz-stars::before {
  content: "★★★★★"; letter-spacing: 2px; font-size: 1.05em;
  background: linear-gradient(90deg,
      var(--kfz-star) calc(var(--rating, 0) / 5 * 100%),
      #d8d8d8 calc(var(--rating, 0) / 5 * 100%));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kfz-rating { display: flex; align-items: center; gap: .4em; flex-wrap: wrap; font-size: .9rem; color: var(--kfz-text); margin: .3em 0; }
.kfz-rating__count { color: var(--kfz-muted); }

/* ---------- Price ---------- */
.kfz-price { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; margin: .5em 0; }
.kfz-price__val { font-size: 1.5rem; font-weight: 800; color: var(--kfz-text); }
.kfz-price__stand { font-size: .72rem; color: var(--kfz-muted); }
.kfz-prime { font-size: .8rem; color: var(--kfz-success); font-weight: 600; margin-bottom: .5em; }

/* ---------- Product box ---------- */
.kfz-box {
  display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem;
  border: 1px solid var(--kfz-border); border-radius: 12px;
  background: #fff; padding: 1.25rem; margin: 1.5rem 0;
}
.kfz-box__media { position: relative; }
.kfz-box__badges { display: flex; flex-wrap: wrap; gap: .4em; margin-bottom: .6em; }
.kfz-box__imglink { display: flex; align-items: center; justify-content: center; }
.kfz-box__imglink img { max-width: 100%; height: auto; object-fit: contain; }
.kfz-box__noimg { color: var(--kfz-muted); font-size: .9rem; padding: 2rem; text-align: center; }
.kfz-box__title { margin: 0 0 .3em; font-size: 1.25rem; line-height: 1.3; }
.kfz-box__features { list-style: none; padding: 0; margin: .6em 0; display: grid; gap: .25em; }
.kfz-box__features li { position: relative; padding-left: 1.4em; font-size: .92rem; }
.kfz-box__features li::before { content: "✓"; position: absolute; left: 0; color: var(--kfz-success); font-weight: 700; }
.kfz-box__note { font-size: .72rem; color: var(--kfz-muted); margin: .5em 0 0; }

/* ---------- Quick-win (top winner) ---------- */
.kfz-quickwin {
  border: 2px solid var(--kfz-primary); border-radius: 12px; overflow: hidden;
  background: #fffdf7; margin: 1.5rem 0;
}
.kfz-quickwin__label { background: var(--kfz-primary); color: #1a1a1a; font-weight: 800; padding: .5em 1em; font-size: .95rem; }
.kfz-quickwin__row { display: grid; grid-template-columns: 150px 1fr 220px; gap: 1.25rem; padding: 1.25rem; align-items: center; }
.kfz-quickwin__imglink img { max-width: 100%; height: auto; object-fit: contain; }
.kfz-quickwin__info h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.kfz-quickwin__features { list-style: none; padding: 0; margin: .5em 0 0; font-size: .88rem; }
.kfz-quickwin__features li { padding-left: 1.3em; position: relative; }
.kfz-quickwin__features li::before { content: "✓"; position: absolute; left: 0; color: var(--kfz-success); }
.kfz-quickwin__cta { text-align: center; }

/* ---------- Comparison table ---------- */
.kfz-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.kfz-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.kfz-table th, .kfz-table td { padding: .8em .7em; border-bottom: 1px solid var(--kfz-border); text-align: left; vertical-align: middle; }
.kfz-table thead th { background: var(--kfz-surface); font-weight: 700; }
.kfz-table__winner { background: #fffdf7; }
.kfz-table__prod { display: inline-flex; align-items: center; gap: .6em; }
.kfz-table__prod img { border-radius: 6px; object-fit: contain; }
.kfz-table__t { font-weight: 600; }
.kfz-table__five { color: var(--kfz-muted); }
.kfz-table__cta { text-align: right; white-space: nowrap; }

/* ---------- Sticky mobile bar ---------- */
.kfz-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; gap: .75rem;
  background: #fff; border-top: 1px solid var(--kfz-border);
  padding: .6rem .9rem; box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.kfz-sticky-bar .kfz-btn { margin-left: auto; }

/* ---------- Affiliate notice ---------- */
.kfz-affiliate-notice {
  background: var(--kfz-surface); border: 1px solid var(--kfz-border);
  border-radius: 8px; padding: .8em 1em; font-size: .85rem; color: var(--kfz-muted);
  margin: 1.5rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .kfz-box { grid-template-columns: 1fr; }
  .kfz-box__imglink img { max-height: 240px; margin: 0 auto; }
  .kfz-quickwin__row { grid-template-columns: 1fr; text-align: center; }
  .kfz-quickwin__features { display: inline-block; text-align: left; }
}
