/* =====================================================================
   amazon-füllartikel.de — editorial redesign
   Visual system ported from the "Füllbar" design handoff (claude.ai/design),
   kept on the real amazon-füllartikel.de brand.
   Fonts are loaded via <link> in the page <head> (see fragments :: metacommon).
   ===================================================================== */

:root {
  --paper: #FBFAF6;
  --ink: #141414;
  --ink-2: #2A2A2A;
  --muted: #8A857C;
  --muted-2: #B5B0A4;
  --rule: #EBE7DC;
  --rule-strong: #1C1C1C;
  --orange: #E8650B;
  --orange-deep: #B85008;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.hidden { display: none !important; }

/* ============ Header ============ */
header.site {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.site-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-logo { height: 26px; width: auto; }
.brand-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  transform: translateY(1px);
}
.nav {
  display: flex; gap: 28px;
  font-size: 13px; color: var(--muted);
}
.nav a { transition: color .15s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav { gap: 18px; } .nav a.hide-sm { display: none; } }

/* ============ Hero ============ */
.hero {
  padding: 64px 0 80px;
  text-align: center;
}
@media (max-width: 720px) { .hero { padding: 40px 0 56px; } }

/* Three steps above input */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: left;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 10px; max-width: 380px; margin-bottom: 36px; }
}
.step {
  display: flex; gap: 14px; align-items: center;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.step:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 24px -14px rgba(20,20,20,.2);
  transform: translateY(-2px);
}
.step-n {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; font-weight: 500;
  box-shadow: 0 4px 10px -2px rgba(232,101,11,.45);
}
.step:nth-child(2) .step-n { background: var(--ink); box-shadow: 0 4px 10px -2px rgba(20,20,20,.35); }
.step:nth-child(3) .step-n { background: var(--ink); box-shadow: 0 4px 10px -2px rgba(20,20,20,.35); }
.step-body { line-height: 1.35; }
.step-t {
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.step-d { font-size: 12.5px; color: var(--muted); }

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
h1.display {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
h1.display i {
  font-style: italic;
  font-weight: 300;
  color: var(--orange);
}
.hero-lede {
  max-width: 50ch;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-lede strong { color: var(--ink-2); font-weight: 500; }
@media (max-width: 720px) {
  .hero-lede { margin-bottom: 36px; }
}

/* Hero input — single quiet line */
.input-bar {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  background: white;
  padding: 6px 6px 6px 24px;
  transition: border-color .15s;
}
.input-bar:focus-within { box-shadow: 0 0 0 4px rgba(20,20,20,.06); }
.input-bar input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  color: var(--ink);
  padding: 12px 0;
}
.input-bar input::placeholder { color: var(--muted-2); }
.input-suffix { color: var(--muted); padding-right: 12px; font-family: 'JetBrains Mono', monospace; font-size: 16px; }
.btn {
  background: var(--ink);
  color: white;
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: background .15s;
}
.btn:hover { background: #000; }
.btn.orange { background: var(--orange); }
.btn.orange:hover { background: var(--orange-deep); }
.btn svg { width: 12px; height: 12px; }

/* Quick amount presets — minimal text only */
.presets {
  margin-top: 20px;
  display: flex; justify-content: center; gap: 4px;
  font-size: 13px;
  color: var(--muted-2);
  flex-wrap: wrap;
}
.presets button {
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 10px;
  border-radius: 100px;
  transition: color .15s, background .15s;
  font-size: 13px;
  white-space: nowrap;
}
.presets button:hover { color: var(--ink); }
.presets button.active { color: var(--ink); background: var(--rule); }
.presets .sep { color: var(--muted-2); padding: 4px 2px; }

/* Subtle threshold indicator */
.threshold-wrap {
  margin: 64px auto 0;
  max-width: 640px;
  text-align: left;
}
.threshold-labels {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  gap: 16px;
}
.threshold-cell .lbl {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  margin-bottom: 4px;
}
.threshold-cell .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; color: var(--ink); font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.threshold-cell.center { text-align: center; }
.threshold-cell.right { text-align: right; }
.threshold-cell .val.accent { color: var(--orange); }
.threshold-bar {
  position: relative;
  height: 10px;
  background: #F0ECE0;
  border-radius: 100px;
  overflow: hidden;
}
.threshold-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--orange) 0%, #F19140 100%);
  border-radius: 100px;
  transition: width .7s cubic-bezier(.4,1.2,.4,1);
}
.threshold-bar .fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  background-size: 200% 100%;
  animation: shine 3s infinite;
}
@keyframes shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.threshold-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  font-size: 12.5px; color: var(--muted);
  white-space: nowrap;
  gap: 12px;
}
.threshold-meta .pct {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
}
.threshold-meta .save {
  color: var(--orange-deep); font-weight: 500;
}
@media (max-width: 520px) {
  .threshold-cell .val { font-size: 18px; }
}

/* ============ Section frame ============ */
section.block {
  padding: 88px 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) { section.block { padding: 56px 0; } }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 56px;
  gap: 24px; flex-wrap: wrap;
}
@media (max-width: 720px) { .section-head { margin-bottom: 36px; } }
.section-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title i { font-style: italic; font-weight: 300; color: var(--muted); }
.section-meta {
  font-size: 13px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ============ Combinations ============ */
.combos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 860px) { .combos { grid-template-columns: 1fr; } }

.combo {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.combo:not(:first-child) { padding-left: 32px; }
@media (max-width: 860px) {
  .combo { padding: 28px 0; border-right: 0; }
  .combo:not(:first-child) { padding-left: 0; }
}
.combo-no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.combo-recommend {
  display: inline-block; margin-left: 10px;
  font-family: 'Inter Tight', sans-serif;
  color: var(--orange-deep);
  text-transform: none;
  letter-spacing: 0;
}
.combo-items { display: flex; flex-direction: column; gap: 14px; }
.combo-row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px;
  align-items: center;
  transition: opacity .15s;
}
.combo-row:hover { opacity: .6; }
.combo-thumb {
  position: relative;
  width: 48px; height: 48px;
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  display: grid; place-items: center; font-size: 20px;
}
.combo-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.combo-name { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.3; }
.combo-cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.combo-price { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--ink); white-space: nowrap; }

.combo-foot {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.combo-total-label { font-size: 12px; color: var(--muted); }
.combo-total { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.combo-over { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.combo-link {
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: opacity .15s;
  white-space: nowrap;
}
.combo-link:hover { opacity: .55; }

/* ============ Filter ============ */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 4px;
  font-size: 14px;
  margin-bottom: 48px;
}
.filter-bar button {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 0;
  transition: color .15s;
  font-size: 14px;
  font-weight: 400;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.filter-bar .sep {
  color: var(--muted-2);
  padding: 0 2px;
  user-select: none;
}
@media (max-width: 720px) {
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { white-space: nowrap; }
}

/* ============ Category group (above-limit catalog) ============ */
.cat-group { margin-bottom: 64px; }
.cat-group:last-child { margin-bottom: 0; }
.cat-group-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.cat-group-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.cat-group-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted-2);
  transition: color .15s; white-space: nowrap;
}
a.cat-group-count:hover { color: var(--ink); }

/* ============ Product Grid ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } }

.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card-image {
  display: block;
  aspect-ratio: 1;
  background: #FFFFFF;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.card-image img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
  transition: transform .6s ease, opacity .3s;
}
.card:hover .card-image img { transform: scale(1.03); }
.fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--muted-2);
  font-size: 30px;
}
.combo-thumb .fallback { font-size: 22px; }
.card-fit {
  position: absolute; top: 12px; left: 12px;
  background: var(--paper); color: var(--ink);
  font-size: 11px; padding: 4px 9px; border-radius: 100px;
  border: 1px solid var(--ink);
  font-weight: 500;
  z-index: 2;
}
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.card-cat {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.card-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px;
}
.card-price .from { font-family: 'Inter Tight', sans-serif; color: var(--muted); font-size: 12px; margin-right: 4px; }
.card-link {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease;
  width: fit-content;
}
.card-link span { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.card:hover .card-link, .card:focus-within .card-link { opacity: 1; }
@media (max-width: 720px) {
  .card-link { opacity: 1; }
}

/* Empty / hint states */
.empty-state {
  color: var(--muted);
  font-size: 15px;
  padding: 24px 0;
  max-width: 52ch;
}

/* ============ How / About strip ============ */
.how {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
@media (max-width: 720px) { .how { grid-template-columns: 1fr; gap: 32px; } }
.how-step {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.how-step .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em;
  color: var(--muted-2);
}
.how-step h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500; font-size: 18px;
  letter-spacing: -.01em;
  margin: 8px 0 10px;
}
.how-step p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 30ch; }

/* ============ Footer ============ */
footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.foot-inner .brand { font-size: 18px; }
.foot-blurb { max-width: 42ch; margin-top: 12px; color: var(--muted); }
.foot-links { display: flex; gap: 28px; }
.foot-links a { transition: color .15s; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted-2);
  flex-wrap: wrap; gap: 12px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
::selection { background: var(--ink); color: var(--paper); }

/* ============ FAQ ============ */
.faq { max-width: 760px; }
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--muted);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 18px; padding-right: 32px;
  color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 60ch;
}

/* ============ Breadcrumbs ============ */
.crumbs {
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
  display: flex; gap: 8px; align-items: center;
}
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:not(:last-child) { color: var(--muted-2); }

/* ============ Stats table ============ */
.stats-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.stats-table th, .stats-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
.stats-table thead th {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
}
.stats-table td.muted { color: var(--muted); }
.stats-table .num { text-align: right; }
.stats-table tbody tr:hover { background: rgba(20,20,20,.025); }

/* ============ Legal pages (Impressum / Datenschutz) ============ */
.legal { max-width: 720px; margin: 0 auto; padding: 64px 0 88px; }
.legal h1 {
  font-family: 'Inter Tight', sans-serif; font-weight: 400;
  font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.legal h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.legal p { color: var(--muted); line-height: 1.65; margin: 0 0 12px; max-width: 64ch; }
.legal a { border-bottom: 1px solid var(--rule-strong); transition: color .15s; }
.legal a:hover { color: var(--orange-deep); }
@media (max-width: 720px) { .legal { padding: 40px 0 56px; } }
